我已经部署了我的mvc5 Web应用程序,它在IIS 7.5上运行,但是美丽网址的路由返回404.在我的解决方案中,我有2个区域运行良好,但主路由不能很好地运行
第一个路由工作正常但第二个路由总是返回404
第一条路线:
routes.MapRoute(
"Default",
"",
new { controller = "Login", action = "Login" },
new[] { "MySolution.Controllers" }
);
第二条路线:
routes.MapRoute(
"Logout",
"logout",
new { controller = "Login", action = "Logout" },
new[] { "MySolution.Controllers" }
);
我尝试安装所有本地计算机(MVC 5,IIS 7.5,Windows 7 Pro),然后该路由运行良好。
我还搜索了一些建议Windows 2008 R2 here的更新修补程序的文章。当我下载并安装更新时,Windows告诉我不允许应用此修补程序。