question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The service process could not connect to the service controller

See original GitHub issue

Hi,

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:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
dasMullicommented, Jan 22, 2018

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.

0reactions
Antariscommented, Jan 22, 2018

Bingo! Thanks for your help dude, massive props! 😄

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found