[英]“No route in the route table matches the supplied values” when using Areas
[英]No route in the route table matches the supplied values
我的路由表中有3条路由。 表中的第二条路线基于AreaRegistration类中的my代码如下:
context.MapRoute(
"Contests_default",
"Contests/{danceStyle}/{danceStyleID}/{competition}/{competitionID}/{division}/{divisionID}",
// URL with parameters
new { controller = "Contest", action = "Index",
danceStyle = UrlParameter.Optional,
competition = UrlParameter.Optional,
division = UrlParameter.Optional } // Parameter defaults
);
但是,当我导航到以下URL时:`http:localhost / Contests / WCS / 5 / JackandJill / 1 / Advanced / 4'
我收到标题中列出的异常。 有什么建议吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.