Windows services 在windows Server 2012 R2上安装windows服务时出现问题
我创建了一个windows服务,该服务已成功安装在我的计算机以及其他一些本地计算机上 但是,当我尝试在客户端的服务器上安装相同的组件时,即Windows server 2012 R2,它得到的错误堆栈如下所示:Windows services 在windows Server 2012 R2上安装windows服务时出现问题,windows-services,windows-server-2012-r2,Windows Services,Windows Server 2012 R2,我创建了一个windows服务,该服务已成功安装在我的计算机以及其他一些本地计算机上 但是,当我尝试在客户端的服务器上安装相同的组件时,即Windows server 2012 R2,它得到的错误堆栈如下所示: The inner exception System.ComponentModel.Win32Exception was thrown with the following error message: The service did not respond to the start o
The inner exception System.ComponentModel.Win32Exception was thrown with the following error message: The service did not respond to the start or control request in a timely fashion.
为此,我尝试了以下解决方案:
The inner exception System.ComponentModel.Win32Exception was thrown with the following error message: The service did not respond to the start or control request in a timely fashion.
regedit
中添加ServicePipeTimeout,以便增加超时时间这两种解决方案对我都不起作用。有人能指导我解决这个问题吗?在您的
ServiceInstaller
类中,您选择了哪个StartType
(启动、系统、自动、手动、禁用)?@Andrea:它的AutomaticOk,尝试将它设置为手动(您可以稍后在“服务”下更改它)。服务安装现在应该完成了。当您(手动)启动服务时,您仍然会遇到问题,但您应该能够通过远程调试或查看事件查看器来解决问题。好的,请在客户端服务器当前不可用时立即尝试。