I have an ASP.NET MVC 4.0 application. I was debugging with IIS 8 Express and then deployed to IIS 7.5. I noticed a difference with how error handling occurred. My code is setup to pass-through all errors so that I can use a Controller to display a custom error message. I'm using this in my web.config: \[code\] <system.webServer> <validation validateIntegratedModeConfiguration="false" /> <modules> <remove name="UrlRoutingModule-4.0" /> <add name="UrlRoutingModule-4.0" type="System.Web.Routing.UrlRoutingModule" preCondition="" /> <remove name="Session"/> <add name="Session" type="System.Web.SessionState.SessionStateModule" preCondition=""/> </modules> <handlers> <remove name="ExtensionlessUrlHandler-Integrated-4.0" /> <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" /> </handlers> </system.webServer>\[/code\]IIS 8 will allow my application to handle the errors by massing it through ASP.NET. But with IIS 7.5 I have to add the following line other wise IIS will return errors such as 404 messages:\[code\]<httpErrors errorMode="Detailed" />\[/code\]The problem is that in this mode if an error occurs that is outside of the managed code, the full details related to the error such as file location are shown on the public. Is there a way to pass-through the errors to ASP.NET in IIS 7.5 without setting the error mode to detailed?