MVC2 Hosting on IIS6

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", // Route name
                "{controller}.aspx/{action}/{id}", // URL with parameters
                new {controller = "Home", action = "Index", id = ""} // Parameter defaults
                );
            routes.MapRoute(
                "Root",
                "",
                new {controller = "Home", action = "Index", id = ""}
                );
        }

        protected void Application_Start()
        {
            RegisterRoutes(RouteTable.Routes);
        }
    }

alt text

EDIT:

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

+5
source share
2 answers

.aspx- IIS ( .mvc) ", "?

, . , .mvc , (, ...)

0

All Articles