1
我期待在不缺省參數的默認值在我的MVC 4應用程序設置自定義路線 (http://www.asp.net/mvc/tutorials/controllers-and-routing/creating-custom-routes-cs)asp.net mvc 4默認路由未指定?
我修改了它稍微:
routes.MapRoute(
"Blog", // Route name
"Archive/{entryDate}" // URL with parameters
);
問題打的時候,我得到一個錯誤:
http://localhost:80/Archive/12-25-2009
The matched route does not include a 'controller' route value, which is required.