为什么我的 .Net Windows 服务在重新启动后不会自动启动? [英] Why won't my .Net Windows service start automatically after a reboot?

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

问题描述

当计算机启动时,我在事件日志中收到以下错误,该服务设置为自动启动,当我手动启动该服务时,它启动没有问题.

I get the error below in the event log when the computer boots, the service is set to automatically start, when I manually start the service it starts without a problem.

有什么想法吗?

服务无法启动.System.Reflection.TargetInvocationException:调用的目标已抛出异常.---> System.Runtime.InteropServices.COMException (0x80010002): 消息过滤器取消了调用.(来自 HRESULT 的异常:0x80010002 (RPC_E_CALL_CANCELED))在 System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)

Service cannot be started. System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException (0x80010002): Call was canceled by the message filter. (Exception from HRESULT: 0x80010002 (RPC_E_CALL_CANCELED)) at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)

谢谢

推荐答案

您的服务是否依赖其他一些在机器启动时尚未启动的组件/服务?

Does your service depend on some other component/service that may not have started up yet at machine boot?

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

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