title: Running a C# console application as a Windows service
body: <p>I have a basic C# console application that I would like to run as a Windows Service.</p>
  
  <p>I have created the Windows service using <code>sc create</code>. This worked fine, and I can see my service under <code>services.msc</code>. When I try and start this service I get the following error:</p>
  
  <blockquote>
    <p>Could not start the PROJECT service on Local Computer. Error 1053: The service did not respond to the start or control request in a timely fashion.`</p>
  </blockquote>
  
  <p>I read that this might be due to the service code taking longer than 30000&nbsp;ms to execute. Therefore I removed the bulk of the code so that hardly anything is being executed.. yet the same error persists.</p>
  
  <p>I am using .NET 3.5 for this project.</p>
  
  <p>What would cause this?</p>