The service did not respond to the start or control request in a timely fashion if Debug dll used

♀尐吖头ヾ 提交于 2019-12-22 06:37:03

问题


I was trying to deploy a windows service on my machine, but when I was trying to start it I got following error.

"Windows could not start the 'myService' on Local Computer. Error 1053: The service did not respond to the start or control request in a timely fashion."

After a bit of research I found out that I was complining my project with Debug option, the moment I changed it to 'Release' mode all was good and working. I can not make sense of this behaviour so I searched the net and found this debug-vs-release-in-net but even this does not explain why my window service was failling to start if i was using debug mode's dll

If anyone can explain it that will help me lot to understand how this actually works thanks.

来源:https://stackoverflow.com/questions/29338049/the-service-did-not-respond-to-the-start-or-control-request-in-a-timely-fashion

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!