I have a windows service that initializes (i.e., the
Service:ServieBase class gets constructed),
but the OnStart() method never fires.
I can attach a debugger to it, and it's just sitting on:
ServiceBase.Run(ServicesToRun);
On the same server, I have another service I've created which runs
just fine. Both services were installed using the Windows Installer,
exactly the same deal... both services run on other machines too.
BTW: when the constructor starts, I log "Service Initializing" at the
top, and "Service Initialized" at the bottom of the constructor, and
both get logged.
BUT THE ONSTART method never fires!
Service status remains forever: "STARTING" I have to kill the process
to make it go away!
I also am handling AppDomain.CurrentDomain.UnhandledException += ...
but that never fires either.
This machine however is a Windows 2000 server.
Is there anything pecurliar with Windows 2000?
It's a .NET 2.0 C# service application.