Unhandled exceptions in a Page

unhandled exceptions in a Page

To Find the unhandled exceptions for a Page

private void Page_Error(object o, System.EventArgs e)
Exception expn = Server.GetLastError();
LogFile.LogFatal(Util.FormatExceptionError("Page_Error","top level error", expn,4));

It makes sure all the errors encountered at the top level get logged.

Related Articles

More articles: Exception handling Error handling Exceptions


No responses found. Be the first to comment...

  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name: