asp.net MVC: how to catch a 404 error?

Posted by Michel on Stack Overflow See other posts from Stack Overflow or by Michel
Published on 2010-04-20T20:09:16Z Indexed on 2010/04/20 20:13 UTC
Read the original article Hit count: 288

Filed under:
|
|

Hi,

in the old days, with asp.net, when i would navigate to a non existing page, the .net framework (or iis?) would throw a 404 and i could attach a default page to that error in the web.config in the custom errors section.

but in the asp.net mvc that doesn't seem to work? Does the mvc framework throws some kind of invalid route excpetion saying it can't find any route for my uri or something like that?

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about error-404