0

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?

1

3 Answers 3

6

One thing you might want to look at is ELMAH. Other than that the MSDN docs is a good place to start.

Sign up to request clarification or add additional context in comments.

1 Comment

Yes, Elmah + a custom errors page (<customErrors mode="RemoteOnly" defaultRedirect="AppErrors.aspx">) + don't have empty catch blocks.
1

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".

Comments

0

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.