ServiceController class not reporting status of service properly

J

Jonathan Leonard

Hello,

I'm using the .NET class ServiceController to start my service. After
calling start, a subsequent call to ServiceController.Status is
returning 'stopped.' I know the service is running because it is
listed as 'Started' from the "Services Administrative Tool." Is there
some reason for the discrepancy? Also, my log file contains
information printed out at the beginning and end of OnStart so I know
it executes correctly.

Your help is greatly appreciated.

--Jonathan
 

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

Top