Monday, November 5, 2012

EventRecord.FormatDescription() method returns nothing though it has data.



When using System.Diagnostics.Eventing.Reader.EventLogQuery to read events from the Windows Event Log, the EventRecord.FormatDescription() method returns nothing though it has data.
When I set the Current Culture, it starts to working.
Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");

Hope this will be helpful to anyone who comes across this issue.

No comments: