NetTalk Central

Author Topic: Setting up Selfservice to run webserver  (Read 5114 times)

Jim A

  • Full Member
  • ***
  • Posts: 203
    • View Profile
    • Email
Setting up Selfservice to run webserver
« 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
« Last Edit: April 30, 2013, 10:11:54 AM by Jim A »

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11263
    • View Profile
Re: Setting up Selfservice to run webserver
« Reply #1 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

Jim A

  • Full Member
  • ***
  • Posts: 203
    • View Profile
    • Email
Re: Setting up Selfservice to run webserver
« Reply #2 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.

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: Setting up Selfservice to run webserver
« Reply #3 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.

Jim A

  • Full Member
  • ***
  • Posts: 203
    • View Profile
    • Email
Re: Setting up Selfservice to run webserver
« Reply #4 on: April 30, 2013, 04:29:39 PM »
Hi Kevin: Works fine as reg. app.  Will check taskmgr.

Thanks.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11263
    • View Profile
Re: Setting up Selfservice to run webserver
« Reply #5 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

Jim A

  • Full Member
  • ***
  • Posts: 203
    • View Profile
    • Email
Re: Setting up Selfservice to run webserver
« Reply #6 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.
« Last Edit: May 01, 2013, 03:50:13 AM by Jim A »

Jim A

  • Full Member
  • ***
  • Posts: 203
    • View Profile
    • Email
Re: Setting up Selfservice to run webserver
« Reply #7 on: May 01, 2013, 06:34:27 AM »
Got it!

Apparently, the remote server had to restart? 

I'm happy again. Thanks.