I'm working with some old code (and frankly I don't know half of what it does) trying to move it over to IIS7.
One of the problems I see is that I get this error:
[SecurityException: The source was not found, but some or all event logs could not be searched. Inaccessible logs: Security.]
If I go manually to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\Security and set that key's (Security) permission to let "Everyone" have full access this goes away no problem. But obviously that's not the optimal solution.
Anyone know of a better way to remove this exception?