Reputation: 185
We are working on exception handling with ASP.NET web applications (with C# language). Would you please let me know the best practices of Exception handling?
Upvotes: 0
Views: 5370
Reputation:
You can use the Application_Error function in Global.asax to catch and handle all exception errors in your ASP.NET application.
Check this Microsoft Help article http://support.microsoft.com/kb/306355 and scroll to where it says "How to use the Application_Error method".
Upvotes: 1
Reputation: 4230
Look at MS Enterprise Library and The Exception Handling Application Block too.
Upvotes: 0
Reputation: 29157
One thing you might want to look at is ELMAH. Other than that the MSDN docs is a good place to start.
Upvotes: 6