服务进程无法连接到服务控制器 [英] The service process could not connect to the service controller

查看:65
本文介绍了服务进程无法连接到服务控制器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试仅编写快速演示服务.我在这里关注MSDN的教程:

http://msdn.microsoft.com/en-us/library/zt39148a.aspx

因此,本教程基本上设置了写入事件日志的基本服务.它还配置安装并添加安装项目.因此,我尝试在两台计算机上进行安装,其中一台运行Server 2008 R2,另一台运行Windows 7.

基本上,安装程序可以正常运行,但是该服务未显示在服务列表中.我还检查了事件日志并收到错误描述:

服务进程无法连接到服务控制器"

但是,没有关于该错误的其他信息.有谁知道如何使该服务显示在服务列表中并运行?谢谢.

我要提到的另一项是创建了服务的自定义日志,但是没有条目.

解决方案

问题已解决.我没有按照教程的最后部分添加自定义操作:)我最初认为是可选的,但看来这是安装服务的最后一部分.现在可以完美运行.

Hi I am trying to write just a quick demo service. I am following the tutorial from MSDN here:

http://msdn.microsoft.com/en-us/library/zt39148a.aspx

So this tutorial basically sets up an basic service that writes to the event log. It also configures the installation and adds a setup project. So I have tried the installation on a couple of computers, one running Server 2008 R2 and one running Windows 7.

Basically what happens is the setup runs fine, but the service does not show up in the service list. I also checked the event log and receive an error with a description of:

"The service process could not connect to the service controller"

However there is no other information about the error. Does anyone have any idea how to get the service to show up in the service list and to run? Thanks.

One other item I could mention is that the custom log for the service is created however there are no entries.

解决方案

Problem solved. I didn't follow the last part of the tutorial for adding a custom action :) I thought at first it was optional however it appears that is the final part of installing the service. Works perfect now.

这篇关于服务进程无法连接到服务控制器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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