The service started and then stopped...

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have created and installed a Windows service which hosts a remote object
for chat clients. The installation went fine, but when I try to start the
service in the Services tool it says: "The service started and then stopped.
Some services stop automatically if they have no work to do..."

I have the dll's required for the service in the same folder as the service,
along with the config files for the service.exe and chat client.exe.

Can anyone suggest anything else I may need to do before I can start the
service?
 
it happened to me many times... it has this behavior most likely because
you have an exception at startup... try to debug your things either by
using a log or by trying to reproduce your behavior in a windows app
(instead of a service)...

I hope it helps

ThunderMusic
 
I removed the settings in the config file and put them in the onstart method
instead. This solved the problem, suggesting an error in my config
declaration.
 
Back
Top