Search:
Namespaces
Discussions
.NET v1.1
Feedback
Global Exception Handling with ASP.NET
Details
Related Types
Site:
http://webdeveloper.earthweb.com/
Original URL:
http://webdeveloper.earthweb.com/scripting/asp/article/0%2C%2C12225_961301%2C00.html
Summary:
You can't debug a problem if you don't know that it exists. After you take your web application live, you are no longer the only one who is using it (hopefully), so you need an effective plan to track exceptions when they occur while others are surfing your site. A great way to do this is to implement an exception handler at the application level. This will allow you to consolidate the logging and notification parts of your exception handling in one convenient place. As you'll see from the code examples that follow, your global exception handler can handle both specific exceptions that you trap in your code and generic unhandled exceptions.
System.Diagnostics.EventLog
System.Diagnostics.EventLogEntryType
System.DivideByZeroException
System.EventArgs
System.Exception
System.Web.HttpApplication
System.Web.HttpApplicationState
System.Web.HttpException
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com