I have an Mvc 5 application, for development I used IIS Express, everything works normally on it, but I'm having a problem uploading it to IIS 7. Even on my local machine, I'll later take it to Windows 2008. The problem is that running http://localhost/Aprovacoes/
my page does not open, just open the files as in the image below:
Inetpubfolderaccessconfigurationwheretheprojectpublishislocated,hasalreadybeentestedoniis.
Ihavealreadytestedwithalltheapplicationpools,theIntegrated4.0iscurrentlyset.
Myrouteconfighasnotmadeanychanges,itlookslikethis:
publicstaticclassRouteConfig{publicstaticvoidRegisterRoutes(RouteCollectionroutes){routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.LowercaseUrls = true;
routes.MapRoute("Default", "{controller}/{action}/{id}", new
{
controller = "Home",
action = "Index",
id = UrlParameter.Optional
}).RouteHandler = new DashRouteHandler();
}
}
I've tried adding default index.cshtml document to iis but it did not work either.
When accessing the Home / Index, the action will identify that there is no user logged in by Forms Authentication, and will redirect to the Account / Login, this entire process works on IIS Express.
Could you help me solve this problem?