Event Log Problem
I am trying to test event logging in .net. Here is the sample code
Dim EventLogName As String = "Test"
If (Not EventLog.SourceExists(EventLogName)) Then
EventLog.CreateEventSource(EventLogName, EventLogName)
End If
Dim Log As New EventLog
Log.Source = EventLogName
Log.WriteEntry("Event Log Test", EventLogEntryType.Error)
I am getting this error message "'SourceExists' is not a member of 'EventLog'."
I am not too sure id I am missing a include file or something, I have included " System.Diagnostics" already.
Thanks!

