I have a service that queries a sql database and emails a list of usres in active directory. The service installs and starts and runs without errors.
However, the service is in a perpetual state of Starting, not Started, Stopped, or Paused. The biggest problem this causes, is the service cannot be stopped, paused, or restared while it's Starting. It also does not allow me to completely uninstall the service. To do that I must restart the computer and uninstall it a second time to make sure it is off the computer.
before restarting the computer it sets the startup type to Disabled.
The OnStart command has 2 statements:
timer.enabled = True
Call Function (variables)
The function writes a log entry and emails me that it started.
the bulk of the code is in the timer command.
thanks for your help




Reply With Quote