title: How do I grant ASP.NET permissions to Write an Event Log entry
body: <p>I am trying to write to the application event log using EventLog.WriteEntry in System.Diagnostics.</p>
  
  <p>I have no problem on my local machine, but on my virtual server, it blows a security error.  </p>
  
  <p>I tried this with the default AppPoolIdentity, and under a custom user created for a new AppPool in the IIS_IUSR group, without success.  </p>
  
  <p>On advice, I gave permissions in REGEDIT to my app pool user to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\EventLog</p>
  
  <p>Still no help.</p>
  
  <p>Any ideas?</p>