404 Pages in ASP.NET MVC
- by Maxim Z.
I'm building my first ASP.NET MVC website, and I'm trying to figure out how to implement a 404 page.
Should I create a controller called "404Controller?" If so, how do I then register this Controller with IIS so that it redirects 404s to that page? Also, in a situation where something is not found (in the database, for example) by some other Controller code, how would I redirect the request to my 404 page?