MVC3在IIS5.1上部署的问题
Mvc 发布到 IIS5.1上 机器是xp系统 IIS映射我也添加了后缀是 .*
Global.asax 没有修改
routes.MapRoute(
"Default", // Route name
"{controller}/{action}/{id}", // URL with parameters
new { controller = "Home", action = "Index", id = "" } // Parameter defaults
);
我访问http://localhost时没有问题,
访问http://localhost/Data/Index时没问题,
访问http://localhost/Data时确有问题,404错误,为什么呢?
Html.ActionLink("链接", "Index", "Data")生成的url地址都是http://localhost/Data形式的。
奇怪的是,为什么在VS2010上调试时又一切正常呢?