user171915
user171915

Reputation: 185

Best practices of Exception handling in ASP.NET web applications

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

Answers (3)

user171770
user171770

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

Tadas Šukys
Tadas Šukys

Reputation: 4230

Look at MS Enterprise Library and The Exception Handling Application Block too.

Upvotes: 0

RichardOD
RichardOD

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

Related Questions