title: What can be the reasons why windows service OnStart is not called?
body: <p>I've installed my serivce but cannot start it.</p>
  
  <p>I get dialog window with the message:</p>
  
  <blockquote>
    <p>Windows could not start the WU Distribution Service service on Local
    Computer. Error 1053: The service did not respond to the start or
    control request in a timely fashion.</p>
  </blockquote>
  
  <p>And two EventLog entries: the first with the same message and the second one with:</p>
  
  <blockquote>
    <p>A timeout was reached (30000 milliseconds) while waiting for the WU
    Distribution Service service to connect.</p>
  </blockquote>
  
  <p>My serivce class has default generated constructor with the only call to <code>InitializeComponent()</code> so nothing heavy.<br/></p>
  
  <p>Just to check how long OnStart runs I inserted <code>Debug.WriteLine</code> with times tamps and added <code>TextWriterTraceListener</code> with <code>Debug.AutoFlush</code> set to true.<br/>
  No log file was created, thus OnStart was not called.<br/>
  To be absolutely sure I just throw exception inside <code>OnStart</code> but still get no messages about exception.<br/></p>
  
  <p>I need to know what can be the reasons why <code>OnStart</code> is not called.</p>