I'm deploying a MCV 1.0 project on a web server running IIS6. (not by my choice) I've thru Steve Sandersons article Here and Phil Haack's article but I'm still having probelms.
Right now I'm trying to implement Option 2 from Steve Sandersons article. The main problem I'm having is with the Home link not rendering correctly. For Instance, in my Site map I have the follwoing:
<%= Html.ActionLink("Home", "Index", "Home") %>
this renders on the pages as http://servername/JCIMS_Orange/Home.mvc
which is NOT correct.
HOWEVER THIS LINK:
<%= Html.ActionLink("About", "About", "Home") %>
renders as... http://servername/JCIMS_Orange/Home.mvc/About
which is correct
My Global.asax RegisterRoutes function looks like:
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
"Default", // Route name
"{controller}.aspx/{action}/{id}", // URL with parameters
new { controller = "Home", action = "Index", id = "" } // Parameter defaults
);
routes.MapRoute(
"Default2", // Route name
"{controller}/{action}/{id}", // URL with parameters
new { controller = "Home", action = "Index", id = "" } // Parameter defaults
);
}
Can anyone tell me why my Home link will not render correctly? I have repeated this error Both on my localhost running on WinXP and on my web server running Win2003 Server.
Appreciate any suggestions or pointers