Skip to content

Instantly share code, notes, and snippets.

@stevejay
Created May 5, 2014 21:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevejay/476865aaa16a5947b2e6 to your computer and use it in GitHub Desktop.
Save stevejay/476865aaa16a5947b2e6 to your computer and use it in GitHub Desktop.
<system.web>
<!-- For IIS 6 -->
<httpHandlers>
<add path="*" verb="*"
type="NotFoundMvc.NotFoundHandler"/>
</httpHandlers>
</system.web>
...
<system.webServer>
...
<!-- For IIS 7+ -->
<handlers>
<remove name="BlockViewHandler"/>
<add name="BlockViewHandler"
path="*" verb="*"
preCondition="integratedMode"
type="NotFoundMvc.NotFoundHandler"/>
</handlers>
</system.webServer>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment