I am developing an application to install and run as a Windows service. It is still faulty and stopped unexpectedly (left nothing in the Windows event log), and when I tried to start it again, I got an error
Windows could not start the service {name of service} on the local computer. Error 1067: The process terminated unexpectedly.
I restarted the computer (Server 2008 R2, virtual machine, if that matters), no help. Uninstalled and reinstalled my service and still get this error!
Something on the machine needs to be cleaned / updated so that it tries to start the service again. I do not want to rebuild the entire virtual machine, but I have no ideas.
UPDATE
I forgot to mention that this Windows service - the same code and installation - runs on 3 other machines without the above error. Turning this debugger into OnStart () still sounds like a way to go, though.
source
share