Hi All
I want to catch an error and report it into a Database in a remote server.(C#.NET).
Can anyone help me?.
thanks in advance....

Create a table to store exception like
ExceptionTbl (ID int, ExceptionMessage varchar(MAX))

and when catching any exception insert the exception message into table

try
{
//your code
}
catch(Exception error)
{
//here you insert error into table
}

In ADO.NET, I don't care about database location! remote, local,..... I just use connection string.

hi thanks.....its good idea.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.