如何在 MVC5 中转储属性路由表?

how do I dump the attribute route tables in MVC5?

我正在尝试查找 MVC5 中的属性路由问题。由于页面未加载 (404),因此用于查找路线的工具无能为力。如果我能得到路由表的转储,我至少可以弄清楚它认为它在寻找什么。

是否有人可以分享执行此操作的代码?

谢谢,

约翰

尝试使用Route Debugger

This utility displays the route data pulled from the request of the current request in the address bar. So you can type in various URLs in the address bar to see which route matches. At the bottom, it shows a list of all defined routes in your application. This allows you to see which of your routes would match the current URL.