I\'d a HD problem in machine where my Intranet IIS server was installed and I\'ve reinstalled all the software. I\'ve restored the site data into new IIS but now, when I typ
Had the same problem in MVC project where I have put a default.aspx in the root
It was not enough to only set web.config
Also had too add routes.IgnoreRoute(""); in RouteConfig.cs
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.IgnoreRoute("");
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);
}
I followed the guide: http://weblog.west-wind.com/posts/2013/Aug/15/IIS-Default-Documents-vs-ASPNET-MVC-Routes