Getting an error writing to event log.
Posted by:
Mike O'Quinn ()
Date: March 07, 2012 05:50PM
We are using version 5.0.8.1 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:
System.Diagnostics.EventLogInternal.FindSourceRegistration(String source,
String machineName, Boolean readOnly, Boolean wantToCreate)
at System.Diagnostics.EventLogInternal.SourceExists(String source,
String machineName, Boolean wantToCreate)
at System.Diagnostics.EventLogInternal.VerifyAndCreateSource(String
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)
at MySql.Data.MySqlClient.MySqlStream.OpenPacket()
at MySql.Data.MySqlClient.NativeDriver.Authenticate411()
at MySql.Data.MySqlClient.NativeDriver.Authenticate()
at MySql.Data.MySqlClient.NativeDriver.Open()
at MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
at MySql.Data.MySqlClient.MySqlPool.GetConnection()
at MySql.Data.MySqlClient.MySqlConnection.Open()
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.