Overview
Features
Download
Documentation
Community
Add-Ons & Services

TimeServer as a Windows service fails to start

Please post support and help requests here.

TimeServer as a Windows service fails to start

Postby DougE » 28 Aug 2008, 15:25

Hi,

I'm trying to learn how to create and use a service so I figured I'd try to run the TImeServer sample application as a service.

First I ran the app from the command line to make sure it's working as expected and that was successful.

Then I entered the following commands:

>timeserver /registerService /displayName=TServer
[Information] The application has been successfully registered as a service

>net start TServer
The service is not responding to the control function.

More help is available by typing NET HELPMSG 2186.

>timeserver /unregisterService
[Information] The service has been successfully unregistered

My first question is "What do I need to do to make this work?"

My second question is "Is there a way to use the VS 2003 debugger to debug it once it's registered?"

Thanks in advance!

Doug
DougE
 
Posts: 13
Joined: 15 Jul 2008, 17:44

Re: TimeServer as a Windows service fails to start

Postby guenter » 10 Sep 2008, 21:59

Since Windows services run under a different user account (with a different PATH setting), the system cannot find the POCO DLLs when launching the TimeServer as a service. Solution: either put the POCO DLLs into the Windowssystem32 directory, or put the DLLs into the same directory as the application executable.

I can't answer the second question.
guenter
 
Posts: 1166
Joined: 11 Jul 2006, 16:27
Location: Austria

Re: TimeServer as a Windows service fails to start

Postby DougE » 22 Sep 2008, 16:01

Alex,

Thanks for the help, that did the trick!

However, my server is using a FileChannel for it's logging and it doesn't generate any output when running as a service. Any ideas?

Thanks in advance!
Doug
DougE
 
Posts: 13
Joined: 15 Jul 2008, 17:44

Re: Re: TimeServer as a Windows service fails to start

Postby DougE » 24 Sep 2008, 14:19

Alex,

Thanks for the help, that did the trick!

However, my server is using a FileChannel? for it's logging and it doesn't generate any output when running as a service. Any ideas?

Thanks in advance! Doug

DougE
 
Posts: 13
Joined: 15 Jul 2008, 17:44


Return to Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron