title: C# EventLog Inaccessible Log
body: <p>Below is an exception I encountered while running the immediately following code:</p>
  
  <blockquote>
    <p>The source was not found, but some or all event logs could not be searched.  Inaccessible logs: Security.</p>
  </blockquote>
  
  <p>The code is</p>
  
  <pre><code>if (!EventLog.SourceExists(this.EventLogSource))
  </code></pre>
  
  <p>The content of the exception makes sense to me, it's why that doesn't. This line is running in Visual Studio 2010, .NET 4, as a console app ( for the time being ). I have run this in a different environment, but I wouldn't expect the fact that I'm remote desk'ed to break this method. I've tried changing <code>HKML\CCS\Services\eventlog</code> permissions - to no avail, as well as the <code>C:\Windows\System32\Winevt\Logs\Security.evtx</code> permissions. Again, to no avail.</p>
  
  <p>My questions are as follows:</p>
  
  <ol>
  <li>Why isn't there an override to ignore secure logs,</li>
  <li>How can I work around this ( programatically )</li>
  <li>IS this because I'm remote desked.</li>
  </ol>
  
  <p>Any advice would be great.</p>