开发者

C# - InstallUtil - Service failing to launch

I have a service in C#, that seems to fail to startup, I have created a screenshot below:

Is it the case that the service returns (NOT_STOPPABLE, NOT_PAUSABLE, I开发者_如何学GoGNORES_SHUTDOWN) that it is not loading up?

http://i.imgur.com/aG7F7.png


Code would be helpful. From my experience that is because what ever you are calling in the service startup method doesn't end. That method needs to return.


Do not run heavy task on service startup.If the method in OnStart takes much time to complete then service couldn't start.If this is your scenario change your code on startup with some background worker from tools list available.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜