I created a Windows Service using VB.NET and successfully installed it. But when I try to start the service it gives me an error saying:
"Could not start the ********* service on Local Computer. This service did not return an error. This could be an internal Windows error or an internal service error. If problem persists, contact your system administrator."
I have created lots of them and successfully started and stopped them. This is the first time this has happened. I don't remember installing/uninstalling any software on my local machine where I am trying to start this service.
Debugging services startup is always a tough problem. Your first step should be to add a bunch of Trace.WriteLine statements to your services start up. Using DBGVIEW from SysInternals, you can watch to see how far you get into the start up code.
If you don't see any trace statements in DBGVIEW, you probably have a problem with the service dependencies. Using the Services MMC, check your registered service for dependencies by going to its properties and selecting the Dependency tab on the dialog. If any of the dependent services are not running, that's the problem.
Dig Deeper on Win Development Resources
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.