我是新来的MVC(和ASP.Net路由)。我试图将* .aspx映射到名为PageController
的控制器。ASP.Net MVC路由映射
routes.MapRoute(
"Page",
"{name}.aspx",
new { controller = "Page", action = "Index", id = "" }
);
岂不上述地图*的.aspx代码PageController
?当我运行这一点,并键入任何.aspx页面中我得到以下错误:
The controller for path '/Page.aspx' could not be found or it does not implement the IController interface. Parameter name: controllerType
有什么事我不是在这里做什么?