1
Vote

A string written to the event log cannot exceed 32766 characters.

description

Logger Error. System.AggregateException: One or more errors occurred. ---> System.ArgumentException: Log entry string is too long. A string written to the event log cannot exceed 32766 characters.
at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName)
at System.Diagnostics.EventLogInternal.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData)
at System.Diagnostics.EventLog.WriteEntry(String message, EventLogEntryType type)
at AllWayNet.Logger.Logger.Log(LogItem logItem) in c:\codeplex\netwaf\src\AllWayNet.Logger\Logger.cs:line 164
--- End of inner exception stack trace ---
---> (Inner Exception #0) System.ArgumentException: Log entry string is too long. A string written to the event log cannot exceed 32766 characters.
at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName)
at System.Diagnostics.EventLogInternal.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData)
at System.Diagnostics.EventLog.WriteEntry(String message, EventLogEntryType type)
at AllWayNet.Logger.Logger.Log(LogItem logItem) in c:\codeplex\netwaf\src\AllWayNet.Logger\Logger.cs:line 164<---

comments