ServiceController class not reporting status of service properly

  • Thread starter Thread starter Jonathan Leonard
  • Start date Start date
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
 
Back
Top