Run a Windows Service as a console app
问题 I want to debug a Windows service but it pops an error message saying Cannot start service from the command line or a debugger. A windows service must be installed using installutil.exe and then started with the Server explorer, windows services Administrative tools or the NET start command. I don't really have any idea about this error..... 回答1: Before a Windows Service can run, it has to be "installed" first using installutil. EG: C:\installutil -i c:\path\to\project\debug\service.exe Then