设为首页 - 加入收藏 ASP站长网(Aspzz.Cn)- 科技、建站、经验、云计算、5G、大数据,站长网!
热搜: 创业者 手机 数据
当前位置: 首页 > 服务器 > 系统 > 正文

错误1001.指定的服务已存在

发布时间:2021-02-03 17:33 所属栏目:52 来源:网络整理
导读:我正在编写一个C# windows服务,我能够在Visual Studio中安装和卸载,然后不确定我在代码中做了什么,搞砸了.现在当我尝试安装时,我收到错误1001: The specified service already exists. 但是当我尝试卸载时,它给了我: Another program is being installed.

我正在编写一个C# windows服务,我能够在Visual Studio中安装和卸载,然后不确定我在代码中做了什么,搞砸了.现在当我尝试安装时,我收到错误1001:

The specified service already exists.

但是当我尝试卸载时,它给了我:

Another program is being installed. Please wait until that installation is complete,and then try installing this software again.

我确实看到我的服务仍列在服务中.我该怎么做才能解决这个问题?

解决方法

sc delete [服务名称]对我有用.请务必以管理员身份打开cmd,否则您将获得访问被拒绝错误.

(编辑:ASP站长网)

    网友评论
    推荐文章
      热点阅读