I need a little help. I am trying to host an MVC 2 application on IIS6. On my dev (XP) machine, it works fine in Cassini or as a website in IIS.
At first I tried to reference the .mvc extension to aspnet_isapi, but when that did not work, I went with the aspx extension.
Any ideas? I probably missed something obvious.
public class MvcApplication : HttpApplication
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
AreaRegistration.RegisterAllAreas();
routes.MapRoute(
"Default",
"{controller}.aspx/{action}/{id}",
new {controller = "Home", action = "Index", id = ""}
);
routes.MapRoute(
"Root",
"",
new {controller = "Home", action = "Index", id = ""}
);
}
protected void Application_Start()
{
RegisterRoutes(RouteTable.Routes);
}
}

EDIT:
There were some bad links that I cleared and now stuck with this on my main page:

source
share