生成成功,
但是
最后弹出一个窗口说:
can not start service from the command line or a debugger
A windows service must first be installed(using installuti.exe)and then started with the 
server Explorer,Windows Services Administrative tool or the NET START command.
什么意思?如何解决啦?

解决方案 »

  1.   

    不能从命令行启动NT服务调试,NT服务必须先使用installuti.exe安装并通过windows服务管理器来启动
    注:installutil.exe是.net框架提供的工具,MSDN上有详细说明
      

  2.   


    我点击了installutil.exe 但是,他是一闪而过,
      

  3.   

    不是点击 从命令行运行
    http://msdn.microsoft.com/zh-cn/library/sd8zc8ha.aspx
      

  4.   

    windows服务吧!!!
    当然不能直接运行,必须安装。
    添加windows服务安装控件,然后生成后,用批处理代码安装
    %windir%\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe %CD%\你的程序名.exe
    net start 你的服务名。