DeleteEventSource failure

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top