[英]'ServiceProcess' does not exist in the namespace 'System'
我正在尝试创建一个Web服务以将命令发送到Windows服务:停止,启动...等。 我添加了对System.ServiceProcess的引用,并且编译时没有错误,但是在运行服务时会出现此错误。
类型或名称空间名称“ ServiceProcess”在名称空间“系统”中不存在(您是否缺少程序集引用?)
先感谢您!
在解决方案资源管理器System.ServiceProcess.dll
添加Referece
using System.ServiceProcess;
的using指令using System.ServiceProcess;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.