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.
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

CrishRank #1,487 · 1.1K reputationPosted May 31, 2010, 4:16 AM EDT
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!