Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi All,

 

I have created a tool in c#, which monitors the eventlog ( security log) and fetches the details of every new entry.

 

The tool runs fine on one of the machines, but on another machine it runs well for some time and then starts giving the following error:

 

"The description for Event ID '0' in Source '' cannot be found.

The local computer may not have the necessary registry information or message DLL files to display the message, or you may not have permission to access them. The following information is part of the event: "

 

The code is as follows:

 

if (eventLog == null)

{

eventLog = new EventLog("Security");

eventLog.EntryWritten += new EntryWrittenEventHandler(EntryToLog);

}

eventLog.EnableRaisingEvents = true;

...

...

private void EntryToLog(Object source, System.Diagnostics.EntryWrittenEventArgs e)

{

< captures various details of e and proccessed them accordingly

}

 

 

I am not able to figure out if the problem is with the tool, the .net framework or with the machine's event log.

 

Any kind of help will be highly appreciated

 

Thanks!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...