I've deployed my mvc5 web application and it runs on IIS 7.5 but the routing for beautiful url returns a 404. In my solution I have 2 areas that work well but the main routing doesn't work well.
The first routing works well but the second routing always returns 404
First route:
routes.MapRoute(
"Default",
"",
new { controller = "Login", action = "Login" },
new[] { "MySolution.Controllers" }
);
Second route:
routes.MapRoute(
"Logout",
"logout",
new { controller = "Login", action = "Logout" },
new[] { "MySolution.Controllers" }
);
I tried to install all my local computer (MVC 5, IIS 7.5 , Windows 7 Pro) then that route works well.
I've also searched some articles that suggested an update hotfix for windows 2008 R2 here. When I downloaded and installed the update Windows told me that do not allow to apply this hotfix.