Service Stopping when started - no Error

  • Thread starter Thread starter John
  • Start date Start date
J

John

I have a service that stops when started with the message

"The nnn service on Local Computer started and then stopped. Some services
stop automatically if they have no work to do, for example, ...

I run the method call in a stand alone app and it works fine.

Using C#, Win 2003 server.

John
 
I'm not sure what method call you mean (StartService?) but Windows does this
sometimes (you'll see the message if an MSI file starts a Service which then
just goes away). I just made the Service Thread.Sleep for 20 seconds
before terminating and the message went away, although there may be a
cleaner way.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top