since I have migrated my code to .net 4.5, I get errors when I try to write eventLog with eventID > 65535
here is my code where iID is > 65535:
System.Diagnostics.EventLog appLog = new System.Diagnostics.EventLog();
appLog.Source = "my source";
appLog.WriteEntry(sMsg, EventLogEntryType.Error, iID);
based on the definition the eventID is well a int32 so I don't understand why I get error there.
here the stack trace:
at System.Diagnostics.EventLogInternal.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData)
at System.Diagnostics.EventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID)
at WSeProcFilesHandler.EventLog_AddEntry(String sMsg, Int32 iID) in d:\Liox\TFS\Eprocurement\Main\Dev\Eprocurement\Services\WAeProcFilesHandler\WSeProcFilesHandler.cs:line 567
any help will be welcomed. thanks