I am working on exception handling and have written below code for the same.
Web.Config
I know this is an old post but I just want to share the easiest way to do it. Just paste this in your Web.config