I'm running an application that has its own error handlers. Error pages are displayed properly while testing in dev environment (error pages are displayed properly).
However the same code on the production IIS, error pages are substituted.
The problem is described here.
I just wonder is there a way to write this settings in web.config file instead of modifying the code.