NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: ProperGary on March 07, 2022, 04:01:22 AM

Title: Running NetTalk API server as a service/azure app
Post by: ProperGary on March 07, 2022, 04:01:22 AM
Hi All,

I've been building an API server using NetTalk and have been asked by the clients infrastructure guys if the server can run as a Windows Service or ideally as an Azure App Service.

Can it be done? has anyone done this and can point me in the right direction?

Thanks in advance

Gary.
Title: Re: Running NetTalk API server as a service/azure app
Post by: Jane on March 07, 2022, 09:22:33 AM
Absolutely the easiest way to run a Clarion app (NetTalk or otherwise) as a Windows service is with Self Service: https://www.capesoft.com/accessories/SelfServicesp.htm

As with any service, you'll want to make sure the account under which it's running has appropriate permissions.  (LOCAL SYSTEM will not have a printer defined, for example, and will not have access to network shares).
Title: Re: Running NetTalk API server as a service/azure app
Post by: ProperGary on March 08, 2022, 06:48:46 AM
Thanks Jane, will get a purchase approved!
Title: Re: Running NetTalk API server as a service/azure app
Post by: Jane on March 08, 2022, 09:58:46 AM
If you don't have Capesoft's MessageBox you may want to pick that up also, Gary. 

Otherwise you'll need to do your own code to override the message and stop statements (using MessageHook, etc.). 
Services aren't allowed to show a user interface, so an error message popping up and wanting to be acknowledged will hang your app forever.  Be sure to read the docs: https://www.capesoft.com/docs/SelfService/selfservice.htm#GroundRules