且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

为什么Windows服务无法启动​​后自动启动的窗口

更新时间:2023-12-04 12:04:40

此情况最常时服务所需的资源不可用当Windows尝试启动它。请检查您的服务需要运行,并确保您需要设定每个资源的依存关系是什么。例如,如果您的服务使用网络,请尝试将它依赖工作站服务(名为LanmanWorkstation)。

This happens most often when a resource needed by your service is not available when Windows tries to start it. Please review what your service needs to operate and ensure that you setup a dependency for each resource required. For example, if your service uses the network, try making it dependent on the "Workstation" service (named "LanmanWorkstation").

如果你是在后Vista的世界上,你也可以设置为自动延迟的启动类型设置为让Windows由约一分钟耽误你的服务的启动。这通常是足够的时间对所有重要/核心服务来建立自己。

If you are in the post-Vista world, you can also set the startup type to "Automatic Delayed" to have Windows delay the starting of your service by about a minute. This is usually enough time for all the important/core services to establish themselves.