C# 如何手动删除windows服务条目
我试图实现wcf服务并将其托管在windows服务上。当时,我能够使用installutil.exe命令安装和卸载wcf服务。由于错误,我删除了项目,并且我的测试wcf服务安装在计算机中。现在我想手动删除该服务。有什么想法吗 当我尝试使用Installutil.exe/u路径删除时,它会引发异常C# 如何手动删除windows服务条目,c#,wcf,C#,Wcf,我试图实现wcf服务并将其托管在windows服务上。当时,我能够使用installutil.exe命令安装和卸载wcf服务。由于错误,我删除了项目,并且我的测试wcf服务安装在计算机中。现在我想手动删除该服务。有什么想法吗 当我尝试使用Installutil.exe/u路径删除时,它会引发异常 Exception occurred while initializing the installation: System.IO.FileNotFoundException: Could not lo
Exception occurred while initializing the installation:
System.IO.FileNotFoundException: Could not load file or assembly 'XXX' or one of its dependencies. The system cannot find the file specified.
我已将路径从我的服务属性->路径复制到可执行文件使用
sc delete "servicename"
在命令提示符下。使用
sc delete "servicename"
在命令提示符下。尝试转到命令窗口并键入:
{your service name} /uninstall.
尝试转到命令窗口并键入:
{your service name} /uninstall.
您的路径似乎不正确,因此此命令失败:InstallUtil.exe/U YourService.exe 请尝试下面的命令
sc delete“yourservice”您的路径似乎不正确,因此此命令失败:InstallUtil.exe/U yourservice.exe 请尝试下面的命令 sc删除“您的服务”