Routing for custom ASP.NET MVC 404 Error page
问题 I am trying to make a custom HTTP 404 error page when someone types in a URL that doesn\'t invoke a valid action or controller in ASP.NET MVC, instead of it displaying the generic \"Resource Not Found\" ASP.NET error. I don\'t want to use the web.config to handle this. Is there any kind of routing magic I can do to catch any invalid URLs? Update: I tried the answer given, however I still get the ugly \"Resource Not Found\" message. Another update: Ok, apparently something changed in RC1. I\