title: Unhandled SecurityException trying to Start example web service
body: <p>I built the very simple Windows service and installer outlined in this article:</p>
  
  <p><a href="https://msdn.microsoft.com/en-us/library/aa984464%28v=vs.71%29.aspx" rel="nofollow">https://msdn.microsoft.com/en-us/library/aa984464%28v=vs.71%29.aspx</a></p>
  
  <p>It seems to have built and installed fine, but when I try to start the service I get an unhandled security exception, which states "{"The source was not found, but some or all event logs could not be searched.  Inaccessible logs: Security."}"  on the following snippet in the Sub New() subroutine:</p>
  
  <pre><code>If Not EventLog.SourceExists("MySource") Then
      EventLog.CreateEventSource("MySource", "MyNewLog")
  End If
  </code></pre>
  
  <p>Per some articles I've found, I've added read permissions for NETWORK SERVICE account to the Security branch and parent EventLog branch in the registry, but I still get the same error.  Does anyone see the problem?</p>
  
  <p>Thanks in advance for any help you may provide!
  Mike</p>