Link to home
Start Free TrialLog in
Avatar of Silas2
Silas2

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of guvera
guvera
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial