MVC Routing Problems

Discussion in 'ASP.NET / ASP.NET Core' started by wattouk, Aug 16, 2009.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Can anyone please offer any advice on how to solve the routing problems with an MVC application. I understand its due to IIS 6 not recognizing the routes.

    Do i need to upgrade to iis 7 and if so can i still use an sql server 208 database?

    Ive tried changing my routing to add the .aspx extensions but it still doesnt work i have added the below code to global asax but my links still don't work, my links are like

    <%= Html.ActionLink("Log In", "logon", "account") %>

    Does this need to change with the below routing in place?



    routes.MapRoute(
    "Default",
    "{controller}.aspx/{action}/{id}",
    new { action = "Index", id = "" }
    );

    routes.MapRoute(
    "Root",
    "",
    new { controller = "Home", action = "Index", id = "" }
    );

    Any advice will be appreciated

    Regards

    liam
     
  2. If you are on IIS 6 I believe you need wildcard mapping to the ASPNet. You may want to open a support ticket and verify with DASP support if this has already be incorporated. If not request for it.
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page