Home All Groups Group Topic Archive Search About

Error creating new source for EventLog

Author
14 Feb 2006 1:11 PM
jsh02_nova@hotmail.com
I'm try to create a new source for my systems application event log so I can
write an event. I use the following code to check if the source exists:

if (!EventLog.SourceExists(source))
                EventLog.CreateEventSource(source, "Application");

I get an error stating this source might exist in the Security Event Log but
was denied access. I have given all active accounts Admistrators rights as
part of my troubleshooting process, but still get  the same error.

Does anybody know how can I bypass security policies on local machine to
create a new source of events in my local Application Event Log?

thx
-jsh

AddThis Social Bookmark Button