title: Windows Service stuck on "starting" status as local system account
body: <p>I developed a http server via console application in C# and decided to turn it into a Windows service to be able to initialize it without the need to login the machine.</p>
  
  <p>I followed all the steps in <a href="https://msdn.microsoft.com/pt-br/library/9k985bc9(v=vs.110).aspx" rel="noreferrer">How to create Windows Service</a> and chose the account as "Local System", but when I install in my server machine and push the start button it takes a while and gives the following error:</p>
  
  <blockquote>
    <p>Erro 1053: The service did not respond to the start or control request in timely fashion.</p>
  </blockquote>
  
  <p>After that, the service status stays stuck in "starting" and the application don't work and I can't even stop the service anymore.</p>
  
  <p>Trying to work around this problem, I changed it to "Network Service", so it started normally, but the application was not listening in the port I set when I checked in the prompt with the command "netstat -an". But the application listens normally if i run it as a console application.</p>
  
  <p>So I am looking for an answer to one of these two questions:</p>
  
  <ol>
  <li>What should I do to make the service starts properly with a Local System account?</li>
  <li>If I decide to use Network service account, what should I care about to guarantee that my service works properly as a server?</li>
  </ol>