In a Mixed Web Forms - MVC application aspx pages are not routed

Buiseastegeft

New Member
I have a Web Forms application .Net Framework 4, Sql Server 2008 and I recently added MVC 4 to it. Everything is working fine on Windows 2008 / iis 7. When I tried to move the site to a Windows 2008 R2 / IIS 7.5 server I encountered a white screen in the browser. Static content and aspx files that are not in the root are fine but for example http://mysite.com or http://mysite.com/default.aspx results in an empty page. If you try a nonexistent page like http://mysite.com/default123.aspx same result, no errors and an empty page. This is my RegisterRouts method in Global.asax:\[code\]public static void RegisterRoutes(RouteCollection routes){ routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.IgnoreRoute("{resource}.aspx/{*pathInfo}"); routes.MapPageRoute("DefaultPage", "", "~/Default.aspx"); // Some custom page routes routes.MapRoute( "Default", "{controller}/{action}/{id}", new { Action = "Index", id = UrlParameter.Optional } );}\[/code\]
 
Back
Top