Event Log
I have to create a windows application or windows service That will send an alert As any error occurs in windows 2003 server. I want to know how can we trace that if any error on windows server by c# code.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
CrishPosted May 31, 2010, 8:16 AM
use below syntext for getting error.
try
{
//code here
}
catch (Exception ex)
{
ShowMessages(ex.Message.ToString());
}
you can find exactly error here in your application using try catch...
Don't forget to Mark Do you like this Answer
that solved your problem!