I'm new to MVC (and ASP.Net routing). I'm trying to map *.aspx to a controller called "PageController".
routes.MapRoute(
"Page",
"{name}.aspx",
new { controller = "Page", action = "Index", id = "" }
);
Wouldn't the code above map *.aspx to "PageController"? When I run this and type in any .aspx page I get the following error:
The controller for path '/Page.aspx' could not be found or it does not implement the IController interface. Parameter name: controllerType
Is there something I'm not doing here?