title: Not getting OnStart event log entry in Windows Service
body: <p>I have the following code for a windows service project.  I have successfully built it and installed it.  When I start it I get an event started in the event log.  However,  I never get the event for "In Onstart" any idea why this is going on?</p>
  
  <pre><code>namespace ADServiceCarlos
  {
      public partial class ADServiceCarlos : ServiceBase
      {           
          public ADServiceCarlos()
          {
              InitializeComponent();
              this.AutoLog = true;
  
              if (!System.Diagnostics.EventLog.SourceExists("MySource")) 
              {         
                  System.Diagnostics.EventLog.CreateEventSource(
                      "MySource","MyNewLog");
              }
              eventLog1.Source = "MySource";
              eventLog1.Log = "MyNewLog";
          }
  
          protected override void OnStart(string[] args)
          {
              eventLog1.WriteEntry("In OnStart");
          }
  
          protected override void OnStop()
          {
          }
      }
  }
  </code></pre>