I running an application that have a proper error handlers. When testing in dev environment all works fine, error pages are displayed properly.
However when moving the same code to the production IIS is catching error pages and substitutes them with its own.
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.