[英]Error 1053: the service did not respond to the start or control request in a timely fashion
I know this question has been asked twice.But both of them didn't help me.My code is working fine like onstart is for initialization the timers etc. I have C# windows service which is running as some accnt not local. 我知道这个问题已经被问过两次了。但是他们两个都帮不了我。我的代码运行得很好,就像onstart是用于初始化计时器等。我有C#Windows服务,它以某些accnt不在本地运行。 Im currently using CCtray to deploy and start the service so it doesn't give me any error.
我目前正在使用CCtray部署和启动服务,因此不会给我任何错误。 But sometimes manually I need to stop and start it again.And that's where I see this msg.
但是有时候我需要手动停止并重新启动它,这就是我看到此消息的地方。 I know microsoft has a hotfix for sp1 but I don't know whether they have for sp2.And my server where service is located is sp2.
我知道微软有针对sp1的修补程序,但我不知道它们是否针对sp2。我所在的服务器是sp2。
I know microsoft has a hotfix for sp1 but I don't know whether they have for sp2.And my server where service is located is sp2.
我知道微软有针对sp1的修补程序,但我不知道它们是否针对sp2。我所在的服务器是sp2。
If we made a hotfix for SP1, the fix is already in SP2. 如果我们为SP1制作了修补程序,则该修补程序已经在SP2中。 Also, don't do anything in the OnStart, start up a separate thread to do anything and respond to SCM requests as fast as possible.
另外,不要在OnStart中执行任何操作,启动一个单独的线程以执行任何操作并尽可能快地响应SCM请求。
另一个原因是,如果您以“调试”模式将DLL复制到安装文件夹,则会出现此问题。您需要做的是以“发布”模式运行项目,将DLL复制或直接形成Release文件夹而不是Debug文件夹,并将该DLL复制到安装文件夹中,它将起作用。您可以看到DLL的大小减小了,它将不包含任何调试符号,并且像这样
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.