Is it possible to create a final route that catches all .. and bounces the user to a 404 view in ASP.NET MVC?
NOTE: I don't want to set this up in my IIS settings.
Is it possible to create a final route that catches all .. and bounces the user to a 404 view in ASP.NET MVC?
NOTE: I don't want to set this up in my IIS settings.
This question came first, but the easier answer came in a later question:
Routing for custom ASP.NET MVC 404 Error page
I love this way now because it is so simple:
Also you can handle NOT FOUND error in Global.asax.cs as below