I implemented the exception handling and after logged the exception wrote line for redirecting the page to the error page. So that user will see the custom error page instead of the original exception screen. But, when I deploy the code on WS 2003 or earlier it's working without issues. But, When I deploy the code on IIS 7, it stopped working. So, This is the post for fixing that problem. Hope it will help you to understand it well.