0

Is there a way to direct specific errors to specific error pages or views (e.g. Error404.aspx) through MVC?

Alex
  • 75,813
  • 86
  • 255
  • 348
  • check this: http://stackoverflow.com/questions/903537/handle-invalid-url-in-mvc/ –  Jun 09 '09 at 00:53

1 Answers1

1

I've used the <customErrors> section of the web.config file to handle this in the past. This works in MVC and/or webforms.

If you don't like that approach, check out this article for a custom solution, and this one for some workarounds on the default architecture.

Mark Struzinski
  • 32,945
  • 35
  • 107
  • 137