ASP.NET - For Error checking software - Asked By bhanupratap singh on 12-Aug-14 08:01 AM

I am developing software application using Microsoft Visual Studio 2008. I want to know that , is there are any software which catch error of developed page in asp.net c#. Because when I upload my pages on IIS it give error which is not general error. I could not under stand the error. While building environment it does not show any error but after deployment on IIS it give error. Therefore I think there will be such software which catches the error after putting URL in such software browser.
Robbe Morris replied to bhanupratap singh on 12-Aug-14 08:03 AM
try
{
    // do some code
}
catch(Exception ex)
{
   System.Diagnostics.Debug.WriteLine(ex.Message);
}

This is the basic core of trapping exceptions in your code.  The error you are getting though is probably a server configuration problem or a permission/security rights issue.  Post the error you see when trying to browse to the website on the server.