Getting an error writing to event log.
Posted by: Mike O'Quinn
Date: March 07, 2012 05:50PM
We are using version 22.214.171.124 and are getting this error:
The source was not found, but some or all event logs
could not be searched..
This error goes away if our application is run as adminstrator. We would like to not have this be a requirement. Is there any way to turn this writing to the event log off? Thanks, in advance.
Here is the stack:
String machineName, Boolean readOnly, Boolean wantToCreate)
at System.Diagnostics.EventLogInternal.SourceExists(String source,
String machineName, Boolean wantToCreate)
sourceName, String currentMachineName)
at System.Diagnostics.EventLogInternal.WriteEntry(String message,
EventLogEntryType type, Int32 eventID, Int16 category, Byte rawData)
at System.Diagnostics.EventLog.WriteEntry(String message)
at System.Diagnostics.EventLogTraceListener.Write(String message)
at System.Diagnostics.EventLogTraceListener.WriteLine(String message)
at System.Diagnostics.TraceInternal.WriteLine(String message)
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.