G
Guest
I am creating custom event logs using VS.Net 2002 on DNR 1.0.
I created an event log named "RDBMS". I create event sources for that log
named "R", "RD", "RDB", "RDBM", and "RDBMS" (the last gets created by
default.)
When I try to remove ANY of these event sources I get an error like the
following:
"System.InvalidOperationException: The event log source 'RD' can not be
deleted, because it's equal to the log name.
at System.Diagnostics.EventLog.DeleteEventSource(String source, String
machineName)
at EVS.frmEVSMain.DeleteSource(String SourceName, String Machine,
EventSourceList& Sources) in C:\...\Form1.vb:line 1111"
HResult = -2146233079
Does anyone know a workaround for this bug or do I have to hack the registry?
I created an event log named "RDBMS". I create event sources for that log
named "R", "RD", "RDB", "RDBM", and "RDBMS" (the last gets created by
default.)
When I try to remove ANY of these event sources I get an error like the
following:
"System.InvalidOperationException: The event log source 'RD' can not be
deleted, because it's equal to the log name.
at System.Diagnostics.EventLog.DeleteEventSource(String source, String
machineName)
at EVS.frmEVSMain.DeleteSource(String SourceName, String Machine,
EventSourceList& Sources) in C:\...\Form1.vb:line 1111"
HResult = -2146233079
Does anyone know a workaround for this bug or do I have to hack the registry?