简体   繁体   English

c#无法启动服务错误1053

[英]c# cannot start the service error 1053

I developed a service and I installed to my machine succesfully. 我开发了一项服务,并成功安装到了我的机器上。 And when I wanna to start the service, error 1053 appears. 当我想启动该服务时,出现错误1053。 So If you don't know about error 1053: 因此,如果您不知道错误1053:

See what I got 看看我得到了什么

I tried the solution which included in the link. 我尝试了包含在链接中的解决方案。 But it still has this error. 但是它仍然有这个错误。 So what is wrong? 那怎么了?

You service is starting too long. 您的服务开始时间太长。 Probably it failed or thrown exception durring startup. 启动期间可能失败或引发异常。

You can attach debugger to this process to see what is wrong. 您可以将调试器附加到此过程中,以查看出了什么问题。 To attach debbuger ow service statup you can try this link: http://gan-r.blogspot.com/2011/09/debugging-windows-services.html 要附加debbuger ow服务状态报告,您可以尝试以下链接: http ://gan-r.blogspot.com/2011/09/debugging-windows-services.html

Something went wrong during startup. 启动期间出了点问题。

The easiest way to find out why is to run the service as a console application. 找出原因的最简单方法是将服务作为控制台应用程序运行。 What you do is simply to attach a console using AllocConsole as I describe here . 您要做的只是使用我在此描述的AllocConsole连接控制台。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM