调试程序时总是谈出一个对话框:
内容是:Cannot start service from the command line or a debugger .A Windows Service must be installed(using installutill.exe) and then started with the ServerExplorer.Windows Services Administrative tool or the NET START command.
请教这是什么错误,为什么会弹出这个对话框,我该怎么解决这个问题呢。谢谢了
本人刚开始接触C#,还请各位谅解,麻烦讲的详细些
内容是:Cannot start service from the command line or a debugger .A Windows Service must be installed(using installutill.exe) and then started with the ServerExplorer.Windows Services Administrative tool or the NET START command.
请教这是什么错误,为什么会弹出这个对话框,我该怎么解决这个问题呢。谢谢了
本人刚开始接触C#,还请各位谅解,麻烦讲的详细些
访问项目中的已编译可执行文件所在的目录。 以项目的输出作为参数,从命令行运行 InstallUtil.exe。在命令行中输入下列代码: 复制代码
installutil yourproject.exe
手动卸载服务
以项目的输出作为参数,从命令行运行 InstallUtil.exe。在命令行中输入下列代码: 复制代码
installutil /u yourproject.exe
提示
可以启动“服务器资源管理器”,然后验证服务是已安装还是已卸载。有关更多信息,请参见如何:访问和初始化服务器资源管理器/数据库资源管理器。