I use sample of MVC when test with VS 2008 on run mode is ok (http://localhost/TestMVC/Home/About)
but when i setup this website on IIS ver 5 (at the same computer) error 404 (- Page cannot be found) is happen (http://localhost/TestMVC/Home/About)
after that i must be modify code in Global.asax like this
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute("Default", "{controller}.aspx/{action}/{id}", new { action = "Index", id = "" });
routes.MapRoute("Root", "", new { controller = "Home", action = "Index", id = "" });
}
protected void Application_Start()
{
RegisterRoutes(RouteTable.Routes);
}
it run, but url like this http://design3/TestMVC/Home.aspx/About how can change to http://localhost/TestMVC/Home/About
Pls help me to fix this error??
*** I'm sorry, I don't know english well :)