PDA

Click to See Complete Forum and Search --> : System error reporting


vijy
Jul 6th, 2007, 12:34 AM
Hi all,
I have to retrieve the System error reporting from System information.
In C#, i need this.
Pls very urgent requirement..
Give some idea to do this

Vijay S:afrog:

ComputerJy
Jul 6th, 2007, 01:53 AM
When you need help in something. You should explain it!!

eranga262154
Jul 6th, 2007, 01:58 AM
:thumb:
Where is your question.

Harsh Gupta
Jul 6th, 2007, 02:05 AM
Are you talking about Event Logs from Event Viewer??

vijy
Jul 6th, 2007, 02:19 AM
hi,
Msinfo32/software environment/ Windows error reporting.
In WER there some common error's are recorded which occured in system,

I have to retreive those details and to display in a listView.
(Sorry for not giving enough information).I hope now u all understood What i need?


Thanks...

Vijay S

Atheist
Jul 6th, 2007, 07:05 AM
Heres a very simple example on retrieving logs from the eventlog. You have to run the application as an administrator though.

foreach (System.Diagnostics.EventLog log in System.Diagnostics.EventLog.GetEventLogs())
{
listBox1.Items.Add("--" + log.LogDisplayName + "--");
for (int i = 0; i < log.Entries.Count; i++)
{
listBox1.Items.Add(log.Entries[i].Message);
}
}

vijy
Jul 7th, 2007, 02:20 AM
Ya i check the above code,its working.Thanks.....

In eventLog user can clear the log information.So i have to retrieve information from SYSTEM INFORMATION only.

Thanks and Regards,

Vijay S

eranga262154
Jul 8th, 2007, 10:18 PM
You have to run the application as an administrator though.


Why is that, any special reason.

vijy
Jul 8th, 2007, 11:24 PM
We cant able to clear the information on msinfo32.This information will keep track of particular errors.
In my requirement i need this.. Client too expecting Msinfo information only,

eranga262154
Jul 8th, 2007, 11:25 PM
Ok, I got the point. Thanks.