Pregunta

Our asp.net 3.5 web application shows a blank page in IE11. The page however renders fine in IE8 to IE10. I have turned on Fiddler and it shows that the complete HTML is returned by the IIS 7.0 webserver however IE11 fails when it tries to render the html. Adding the site as an intranet site in the "compatability view settings" makes the site work fine. What can I do at my webserver or ASP.Net application end to make sure that the application renders fine in all IE browsers. I have spend several days trolling different websites looking for an answer but no avail. Here is the latest raw response from fiddler: https://drive.google.com/file/d/0BxQo8ldaJK3ydmpVQnp2bU5RcTg/edit?usp=sharing

¿Fue útil?

Solución 2

We were using the deprecated Microsoft Mobile Toolkit to detect mobile devices. Due to this IE11 was detecting the ContentType of the page as "text/xml" instead of "text/html". Instead of using something else to detect mobile devices, I decided to do the following in our aspx page's base page:

 protected override void OnPreInit(EventArgs e)
        {
            base.OnPreInit(e);

            HttpContext.Current.Response.Clear();
            HttpContext.Current.Response.ContentType = "text/html";

        }

Otros consejos

hit F12 and see if the markup is actually rendered. Check out the styles, etc. See if anything is hiding your markup. Use the Network waterfall tab (works like fiddler) to examine the requests, look for any 4XX or 5XX responses. Check the console for any errors logged.

What is your DOCTYPE? it should look just like this:

<!DOCTYPE html>

If not there is a chance you are bouncing to Quirks mode.

Also are you doing any browser sniffing? If so, STOP.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top