469,332 Members | 6,874 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,332 developers. It's quick & easy.

How to read Security Logs from Domain Controllers using C#?

I am trying to read Account Management category events of Security Logs using EventLog class, but I can not read the event message. Error message:

"The description for Event ID '565' in Source 'Security' 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."

Any suggestion?

Also is it possible to read event log from Domain Controllers in real time using C# (or .Net)...if yes how?

May 24 '07 #1
3 2165
read the ms article KB842795 and then "Introduction to the EventLog Component" in your .Net documentation
May 25 '07 #2

Can you explain in detail? Article KB 842795 is about custom event and I am not dealing with custom events...........

May 29 '07 #3
Read that introductory material.

using System.Diagnostics;
static class ShowEventLog
static void Main()
NegotiateStream ns = new NegotiateStream(new System.IO.
EventLog el = new EventLog("Application","");
foreach (EventLogEntry ele in el.Entries)
May 29 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Joseph Geretz | last post: by
11 posts views Thread by Jason | last post: by
3 posts views Thread by =?Utf-8?B?Q0QuU21hbGxleQ==?= | last post: by
reply views Thread by =?Utf-8?B?U2FtZWVrc2hh?= | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Marylou17 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.