简单实例-4: 创建 Windows Service Host在这个实例中创建的是“Windows 服务程序”:关于"Windows服务程序"就好像是IIS、SqlServer一样的服务程序,可以这样理解吗?问题一:“4. 创建Service的安装类:在WindowsService 类的设计界面上右击选择 [Add Installer]”,什么意思?是不是像安装部署软件一样,只不过这里是用一个类进行的安装。问题二:“修改 serviceProcessInstaller 的 Account 属性 (默认为User) 改为 LocalSystem”,什么作用,是在干嘛?问题三:“通过在Visual Studio的 [Command Prompt] (命令行)模式下通过 InstallUtil 工具安装 Windows服务:”,这是什么怎么找不到,在哪??? 是在VS下将服务安装到本地计算机上? 问题五:直接运行生成的“exe”文件时提示错误:
“Windows Service Start Failure”
Cannot start service from the cammand line or a debugger. A Windows Service must first be installed (using installutil.exe) and then started with the ServerExploer,Windows Service Administrative tool or the NET START command什么意思?呀咿呀,大家一起来学习
“Windows Service Start Failure”
Cannot start service from the cammand line or a debugger. A Windows Service must first be installed (using installutil.exe) and then started with the ServerExploer,Windows Service Administrative tool or the NET START command什么意思?呀咿呀,大家一起来学习
2.Localsystem账户启动的话,windows启动时,此服务启动。 否则要特定账户登录它才启动。
3.InstallUtil是专门安装windows服务的小程序。你的VS.net目录中应该有。
安装:
InstallUtil.exe xxxx.exe
卸载:
InstallUtil.exe/u xxx.exe