Windows Service not appearing in services list after install

后端 未结 9 1388
刺人心
刺人心 2020-11-30 20:06

I\'ve created a windows service in C#, using Visual Studio 2008 I pretty much followed this: http://www.codeproject.com/KB/dotnet/simplewindowsservice.aspx

I created

相关标签:
9条回答
  • 2020-11-30 20:39

    When installing services, I would highly recommend using NSSM, which worked well for me for all my WinService needs. It can install any executable (even if .bat, .cmd) as a service, and guarantees your service is always up and running.

    To use this tool:

    1. Download from here

    2. And follow the instructions here

    Then check the services list, it should be there, up, and running.

    0 讨论(0)
  • 2020-11-30 20:40

    I discovered that your installer class much be in the same project as the Service. The installer cannot exist in a library project referenced by the Service.

    0 讨论(0)
  • 2020-11-30 20:44

    I got owned in the face by this one, so I'm putting it here just in case anyone else runs into it.

    If you followed the instructions in the guides but are still having issues installing, ensure your Installer class is public. Internal won't work.

    0 讨论(0)
提交回复
热议问题