BreakHead
BreakHead

Reputation: 10672

Service cannot be started. The service process could not connect to the service controller

I Created a Sample WCF service and was trying to host in Windows Service, I installed the service using InstallUtility.exe but When I tried to start the service it give the error "Service cannot be started. The service process could not connect to the service controller " in EventLog and also it pop up the services stop automatically if they have no use.

Any Idea how can I proceed further and can access WCF services..

Best Regards

Upvotes: 4

Views: 15678

Answers (1)

rerun
rerun

Reputation: 25505

Your service threw an error before it was able to open you servicehost first step I would take is add a catch and a trace write for any caught errors. If that doesn't do the trick you need to use system.Diagnostics.Debugger.Launch to see whats up.

Upvotes: 5

Related Questions