Created
May 5, 2014 21:23
-
-
Save stevejay/7c3161ad60efb2b14f1b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<system.web> | |
<!-- For IIS 5 and 6, and the Visual Studio Development Server --> | |
<httpHandlers> | |
<add path="*" verb="*" | |
type="MvcErrorHandling.MvcHelpers.CustomHttpNotFoundHandler"/> | |
</httpHandlers> | |
</system.web> | |
... | |
<system.webServer> | |
... | |
<!-- For IIS 7+ --> | |
<handlers> | |
<remove name="BlockViewHandler"/> | |
<add name="BlockViewHandler" | |
path="*" verb="*" | |
preCondition="integratedMode" | |
type="MvcErrorHandling.MvcHelpers.CustomHttpNotFoundHandler"/> | |
</handlers> | |
</system.webServer> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment