A
A.M
Hi,
I am using
EventLog.WriteEntry Method (String source, String message, EventLogEntryType
type)
methot to log a very long string (108402) as message to event log.
It gives me this exception:
Exception Type: System.ComponentModel.Win32Exception
NativeErrorCode: 87
ErrorCode: -2147467259
Message: The parameter is incorrect
TargetSite: Void WriteEvent(Int32, Int16,
System.Diagnostics.EventLogEntryType, System.String[], Byte[])
HelpLink: NULL
Source: System
If I change the [message] parameter to a shorter string, It works fine.
What is limitation for [message] parameter of EventLog.WriteEntry method ?
Thanks,
Alan
I am using
EventLog.WriteEntry Method (String source, String message, EventLogEntryType
type)
methot to log a very long string (108402) as message to event log.
It gives me this exception:
Exception Type: System.ComponentModel.Win32Exception
NativeErrorCode: 87
ErrorCode: -2147467259
Message: The parameter is incorrect
TargetSite: Void WriteEvent(Int32, Int16,
System.Diagnostics.EventLogEntryType, System.String[], Byte[])
HelpLink: NULL
Source: System
If I change the [message] parameter to a shorter string, It works fine.
What is limitation for [message] parameter of EventLog.WriteEntry method ?
Thanks,
Alan