• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 370
  • Last Modified:

Catchall route not catching all

I'm running asp.net 2.0 mvc, I'm trying to put a route in so that any mistake in the path gets caught and sent to a default page. I know there are a few ways of doing this, but I'm trying the simple one of just having a catch-all route:
routes.MapRoute("Error", "{*url}",new { controller = "Home", action = "Index", id = UrlParameter.Optional } );, ....but its throwing an error
0
Silas2
Asked:
Silas2
1 Solution
 
guveraCommented:
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now