Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 3
    it's 404 error, i would just not bother about it. let it display 404. as definitely user mistyped something. or if it is something thats moved then your application should take that request and do redirect permanent. 404 belongs to webserver not application. you can always customize iis pages for error. Commented Aug 1, 2010 at 4:08
  • you can have a look at this solution as well blog.dantup.com/2009/04/… Commented Nov 4, 2012 at 20:05
  • ben.onfabrik.com/posts/aspnet-mvc-custom-error-pages also has some good information Commented Feb 6, 2014 at 12:17
  • 4
    It's a shame that 4 stable releases later and more than 5 years on, the situation for handling 404s in asp.net MVC + IIS hasn't really improved and this is still the go to Q&A for how to handle it. Commented Aug 29, 2014 at 13:50