Asp.net-mvc – How to debug “No route in the route table matches the supplied values.” in ASP.NET MVC

asp.net-mvc

I seem to run into this error all the time:

No route in the route table matches the supplied values.

An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

The stack trace is just a bunch of MVC garbage.

Obviously I am querying for a non-existent route, but how do I discover which route it was actually trying to query? I would love to know the actual URL and HTTP Method. How can I discover this?

(I'm used to Django where the attempted URL is a part of the exception and would prefer a more efficient method than viewing the source of my page and figuring it out.)

Best Answer

There's a nice route debugger.