The service process could not connect to the service controller
See original GitHub issueHi,
I’m utilising a signed version of your project to host some distributed services as Win32 services. The integration works fine, but when I try and run the project from VS, or from the command prompt, I keep getting the same result:
The service process could not connect to the service controller
Literally the only thing I have changed is to sign the code (we have an internal policy about code signing), and have deployed it to our internal NuGet package feed.
OS: Windows 10 (1607 - 14393.1944) .NET Core version: 2.0.0
Sounds like it is having issues with the following error code - ERROR_FAILED_SERVICE_CONTROLLER_CONNECT
? This seems to be an intrinsic error when running a service as a console app - I’m not sure how to tell Windows otherwise 😕
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
The service process could not connect to ...
The message "Service cannot be started. The service process could not connect to the service controller" is logged in the event log ...
Read more >Windows Server 2012 (Windows Server) - Microsoft Q&A
“Service cannot be started. The service process could not connect to the service controller”. i have tried everything in this post below but ......
Read more >Problems with windows service starting - Support
Looking through Event Viewer I found the error “Service cannot be started. The service process could not connect to the service controller”.
Read more >Windows Service In Task Scheduler – Service cannot be ...
The service process could not connect to the service controller. windows-services. I have a simple Windows Service project. I have followed instructions located ......
Read more >Service cannot be started. The service process could not ...
Coding example for the question Windows Service: Service cannot be started. The service process could not connect to the service controller-C#.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It needs to return from the Start() method to notify the service controller of the completed startup. If you block inside the service start, it will hang and eventually time out.
Bingo! Thanks for your help dude, massive props! 😄