Handle exceptions in ASP.NET + IIS

Handling exceptions in ASP.NET can be quite tricky. There is lot of ways how to handle them, some are described in the links below (see resources to study). Our solution looks like this Web.config <system.web> <!– MVC Settings –> <compilation debug=”true” targetFramework=”4.5.1″ /> <customErrors mode=”On” /> <!– TODO: Use RemoteOnly for production –> </system.web> <system.webServer> […]