1.7. Adding the Custom Exception Handler to Your Own Site

Building this class library sure has been fun, but the fun's not over yet. Remember, the best part of this project is that, now that it's finished, you can use it in all your web sites!

Here, I'll present a quick checklist of steps to take to get it working, either in a brand-new or existing site.

  • Open the LD.ExceptionHandling project from the download folder, and compile it in release mode.

  • Pick up the LD.ExceptionHandling.dll file from the bin/Release folder of the compiled project, and drop it into the Bin folder of your own site.

  • Configure the application in web.config.

    • First, place the code from Listing 31 to register the <exceptionHandling> section.

    • Second, place the code from Listing ...

Get Robust ASP.NET Exception Handling now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.