Windows服务在重新启动后不会自动启动 [英] windows service doesnt starts automatically when rebooted

查看:625
本文介绍了Windows服务在重新启动后不会自动启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我已经在Windows服务类型的c#中创建了一个项目,将服务安装程序的启动类型设置为自动",还为该服务创建了安装程序/安装程序,
首次安装该服务时,我会手动启动该服务,但是在重新启动过程中,尽管启动类型设置为自动",它也不会自动启动.
请帮助我,使之成为可能.

谢谢,

Krunal

Hello everyone,
I have made a project in c# of type windows service, i have set the service installer start up type to "Automatic" , I have also created a installer/setup for that service,
when i first install that service, i manually start that service, but during reboot it doesnt starts automatically although startup type is set to "Automatic"..

Please help me how to make this possible.

Thanks ,

Krunal

推荐答案

请确保您的服务依赖项已首先启动(即,如果您正在使用SQL Server等).

http://social.msdn.microsoft.com/Forums/zh/csharpgeneral/thread/2d1431f0-005e-4efe-a39f-73f43b940476 [
Make sure your service dependencies have started first (i.e. SQL server if you are using it etc.).

http://social.msdn.microsoft.com/Forums/en/csharpgeneral/thread/2d1431f0-005e-4efe-a39f-73f43b940476[^]


删除了日志条目,它开始正常运行...实际上,该日志条目遇到问题...
Removed log entry , and it started working fine... actually the log entry was having some problem...


这篇关于Windows服务在重新启动后不会自动启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆