I have a project that I recently upgraded to ASP.NET MVC 3. On my local machine, everything works fine. When I deploy to the server, I get an error anytime I use a RedirectToAction
call. It throws a System.InvalidOperationException
with the error message No route in the route table matches the supplied values. My assumption is that there is some configuration problem on the server, but I can't seem to be able to figure it out.
Asp.net-mvc – RedirectToAction Causes “No route in the route table matches the supplied values” in ASP.NET MVC 3
asp.net-mvcasp.net-mvc-3
Best Answer
I ran into this with areas within MVC3 when redirecting across areas. As others have said, Glimpse is very useful here.
The solution for me was to pass in the Area within the route values parameter changing:
to: