手动服务会自动启动 [英] Manual Service is started automatically

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

问题描述

大家好,

我已经用C#编写了Windows服务.它在Windows XP上可以正常工作,但是当我在Windows 2003上发布它时,尽管已将其更改为手动,但它还是会自动启动!每当我停止它时,它就一直启动.
(此服务使用的c ++ dll从WinSNMP陷阱中读取陷阱).
Windows 2003中有什么可以启动我的服务!!!!

任何想法都很好.

谢谢,
Aidin

Hi All,

I have written a windows service in c#. it works fine on windows XP but when I publish it on windows 2003, it is started automatically although I have changed it to manual! It keeps starting every time I stop it.
(This service is using a c++ dll which reads traps from WinSNMP Traps)
Is there any thing in Windows 2003 that starts my service!!!!

Any idea wellcome.

Thanks,
Aidin

推荐答案

不是由于服务意外终止(例如未处理的异常)引起的问题吗?此后可能会由OS自动重新启动.

如果您有其他依赖于此服务的服务,它也可以自动启动.
Can''t be the problem caused by an unexpected termination of your service (such as unhandled exception)? It may be thereafter restarted automatically by OS.

It can be also started automatically if you have another service which depends on this one.


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

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