Windows 服务不会自动启动
我有一个用 .Net 3.5 编写的 Windows 服务,设置为自动启动,但系统重新启动时它不会启动。
据我了解,这可能是由于当服务尝试启动时我的服务的依赖项未启动所致。我不知道我的服务取决于什么。我尝试了解决方法,将 Windows 打印后台处理程序添加为我的服务的依赖项之一,因为打印后台处理程序是在启动过程中启动得很晚的服务之一。好吧,解决办法也不起作用。
我使用的是 Windows Server 2003 R2。所以“延迟自动重启”选项对我不可用。我不能仅仅为此使用 Windows Server 2008。
我现在没有主意了。任何建议将不胜感激。
I have a windows service written in .Net 3.5 set to be automatically start, but it wouldn't start when system reboots.
As I understand, it may be caused by my service's dependency aren't started when the services tries to start. I don't know what my service depends on. I tried the workaround by adding windows print spooler as one of my service's dependencies, since print spooler is one of the services start quite late during the boot-up. Well, the work around doesn't work neither.
I'm using windows server 2003 r2. so the "delayed automatically restart" option is not available to me. and I can't use windows server 2008 just for this.
I'm out of ideas at the moment. Any suggestion would be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
可以尝试的一些建议:
A few suggestions to try out: