Windows service start failure: Cannot start service from the command line or debugger [duplicate]
Watch this video, I had the same question. He shows you how to debug the service as well. Here are his instructions using the basic C# Windows Service template in Visual Studio 2010/2012. You add this to the Service1.cs file: You change your Main() to call your service this way if you are in the … Read more