I'm having an irritating issue when trying to write to the event log on a 2008 server. My code that works everyplace else is failing with this error:
The source was not found, but some or all event logs could not be searched. Inaccessible logs: Security.