ASP.NET project broken layout on IE11

How to reproduce the problem:

Web Server installed under .NET 4.0 version possible caused IE11 can not recognize User-Agent request header from your web server.


Modify or Add file in your web site.  ~\App_Browsers\w3cvalidator.browser.
(File link backup :

Read this to get more detail.

ASP.NET MVC 5 – remove console.log by set compilation to false


In Web.config

<compilation debug="false" targetFramework="4.5">



if (HttpContext.Current.IsDebuggingEnabled)
    BundleTable.EnableOptimizations = false;
    BundleTable.EnableOptimizations = true;


JS files
console.log(“your debug log here.”);


Nice related article about remove console -