Windows Service not installing

断了今生、忘了曾经 提交于 2020-01-06 11:54:29

问题


I'm attempting this walk-through:

http://msdn.microsoft.com/en-us/library/ff649818.aspx

On Step 6 I've had problems using Installutil so had to copy it into the Debug folder of the windows service exe. Now the command line runs but the service does not install and I get the following error message.

Where do I start to find the problem?

This is the commend line application that I'm using:


回答1:


Use the Visual Studio Command Prompt to ensure that installutil is in your path.

Make sure you run the aforementioned command as Administrator. The easiest way to do that is to find it in the start menu and then right click it, and choose "Run as Administrator". The quickest way is to press the start button, type "visual studio command prompt" and then press control+shift+enter.



来源:https://stackoverflow.com/questions/12699240/windows-service-not-installing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!