NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Jim A on April 30, 2013, 10:09:39 AM

Title: Setting up Selfservice to run webserver
Post by: Jim A on April 30, 2013, 10:09:39 AM
Just purchased SelfService and am trying to determine how this needs to be set up.  The webserver is located on a remote machine that is running VM.  I added SelfService to my webserver app.  I can click: Install and it installs it correctly. I can start it from  services.msc  or my app.

Problem is that it doesn't hear incoming requests.  The window disappears, the app is running, but does not respond to browser.

Guessing that it's problem something simple that I either don't see or understand.

Thanks,

Jim
Title: Re: Setting up Selfservice to run webserver
Post by: Bruce on April 30, 2013, 11:04:05 AM
probably you have not added the program to the Windows Firewall as an exception so that it can serve.

The other common problem is that you are relying on it loading some settings, but you are not loading the settings correctly when in service mode. (Remember in service mode the Current Dir is not the Exe dir, unless you make it so.)

but the firewall is my guess.

cheers
Bruce
Title: Re: Setting up Selfservice to run webserver
Post by: Jim A on April 30, 2013, 12:07:30 PM
Thanks Bruce.

To follow up: the firewall is opened for the nettalk web server app.  Does something more need to be done with it?

I am calling the application from a folder on the C: drive.There it checks an INI file to determine the path to the data files.  Will that work?  Do I need to put the app in a different folder?

Sorry for the trouble.
Title: Re: Setting up Selfservice to run webserver
Post by: kevin plummer on April 30, 2013, 03:29:48 PM
If you run it as a normal windows app (not service) does it accept incoming requests? If yes then it's not your firewall. Also use task manager to make sure only one instance of your app is running when testing.
Title: Re: Setting up Selfservice to run webserver
Post by: Jim A on April 30, 2013, 04:29:39 PM
Hi Kevin: Works fine as reg. app.  Will check taskmgr.

Thanks.
Title: Re: Setting up Selfservice to run webserver
Post by: Bruce on April 30, 2013, 08:44:50 PM
perhaps do something to "prove" that it's reading the right INI file at startup.
Specifically when in Service mode.
This goes double if you have the Port number set in the Ini file.

What I'd do is write some value (usually the time) _into_ the Ini on startup. That way I can see that it's all good there.

Now regarding the data location - is that also on the C drive? Are you using TPS or SQL?

cheers
Bruce
Title: Re: Setting up Selfservice to run webserver
Post by: Jim A on May 01, 2013, 03:40:43 AM
Hi Bruce: Using tps files on C:  Will try your suggestion.  Is there some place that the app should be called from that would make this simpler?

IOW, does that change when it is a service?

Thanks.
Title: Re: Setting up Selfservice to run webserver
Post by: Jim A on May 01, 2013, 06:34:27 AM
Got it!

Apparently, the remote server had to restart? 

I'm happy again. Thanks.