Hi, I have tried executing the below code... and it works fine, there is no error. But, as the above title suggests, when i look at the application event in the eventviewer... nothing is written there regarding this error.
I used different code to create a custom event log and i was able to write to that ok. Does anyone know what i'm doing wrong here? Using windows XP and visual studio 2005 windows form application.
If Not EventLog.SourceExists("RevenueByCountryAndIC01") Then
Dim log As New EventLog("Application")
log.Source = "RevenueByCountryAndIC01"
log.WriteEntry("Error is test1", EventLogEntryType.Error, 1)