title: NSSM can't start windows service
body: <p>I'm trying to run my wpf service with nssm service manager. The problem is that using nssm I can install service, but then when I try to start it I get the following response in terminal:</p>
  
  <blockquote>
    <p>MyService: Unexpected status SERVICE_PAUSED in response to START control.</p>
  </blockquote>
  
  <p>Then in EventViewer I get the following error:</p>
  
  <blockquote>
    <p>Service cannot be started. The service process could not connect to the service controller</p>
  </blockquote>
  
  <p>Although I can start my service using NET commands, or using VisualStudio, but this problem occurs only with nssm... </p>
  
  <p>Framework:
  <strong>.NET Framework 4.6.1</strong></p>
  
  <p>Any suggestions on how to fix this issue?</p>
  
  <p><strong>EDIT 1</strong></p>
  
  <p>I created sample WPF service using <a href="https://docs.microsoft.com/en-us/dotnet/framework/windows-services/walkthrough-creating-a-windows-service-application-in-the-component-designer" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/dotnet/framework/windows-services/walkthrough-creating-a-windows-service-application-in-the-component-designer</a> example. And the result is still the same.</p>
  
  <p><strong>EDIT 2</strong> </p>
  
  <p>I managed to get NSSM error:</p>
  
  <pre><code>Cannot start service from the command line or a debugger.  A Windows Service must first be installed (using installutil.exe) and then started with the ServerExplorer, Windows Services Administrative tool or the NET START command.
  </code></pre>
  
  <p>I don't get how nssm works now....</p>