Could not start Windows Service, Error 1064 Could not start Windows Service, Error 1064 windows windows

Could not start Windows Service, Error 1064


Thanks to @Siderite Zackwehdex's comment, I was able to find the full stack trace of the underlying exception in EventViewer, under:

Windows Logs\Application

In my case, my service is named "HttpDispatcher", which appears in the "Source" column in the top pane.

I could see immediately it was due to a dependency issue where my .NET 4.7.2 project was not pulling across my .NET Standard references. (That ol' chestnut).

Event Viewer: Windows Logs/Application


I faced the same issue. The reason was I forgot to set the Database connection properly in configurations.


I also had the same error in my Windows Service.The reason was it can't read a configuration parameter, so it crash.

Adding some validation (bugfixing), the Windows Services can start it correctly.