DeleteEventSource failure

  • Thread starter Thread starter Federico Sasso
  • Start date Start date
F

Federico Sasso

hi all,

running thecode
EventLog.DeleteEventSource(source);

the following exception is fired:
"The event log source 'A_NAME' can not be deleted, because it's equal to the
log name."

that is, in fact, true, the Event Log and source have are homonymous, but
why this should make the command fail?
and, mainly, how on earth can I delete the source programmatically
(hopefully without having to remove the registry keys directly)?

please help!

-

Federico Sasso &8v>
http://www.crt.unige.it/jsSQL
The jsSQL Project - JavaScript Database and SQL Engine
 
Back
Top