#18474: Forcing IIS 7.0 not to display its own error page

Work Item: 18474

--HG--
branch : 1.x
This commit is contained in:
TheMonarch
2012-02-27 17:24:13 -08:00
parent a251b49686
commit db5879e949

View File

@@ -141,6 +141,8 @@
<!-- Return 404 for all requests via managed handler. The url routing handler will substitute the mvc request handler when routes match. --> <!-- Return 404 for all requests via managed handler. The url routing handler will substitute the mvc request handler when routes match. -->
<add name="NotFound" path="*" verb="*" type="System.Web.HttpNotFoundHandler" preCondition="integratedMode" requireAccess="Script"/> <add name="NotFound" path="*" verb="*" type="System.Web.HttpNotFoundHandler" preCondition="integratedMode" requireAccess="Script"/>
</handlers> </handlers>
<!-- Prevent IIS 7.0 from returning a custom 404/500 error page of its own -->
<httpErrors existingResponse="PassThrough" />
</system.webServer> </system.webServer>
<runtime> <runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">