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.

Solution:

Modify or Add file in your web site.  ~\App_Browsers\w3cvalidator.browser.
(File link backup : https://www.dropbox.com/s/85887zvntlxe3fl/w3cvalidator.browser?dl=0)

Read this to get more detail. http://blogs.telerik.com/aspnet-ajax/posts/13-12-19/how-to-get-your-asp.net-application-working-in-ie11

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

 

In Web.config

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

 

BundleConfig.cs

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

 

JS files
///#DEBUG
console.log(“your debug log here.”);
///#ENDDEBUG

 

Nice related article about remove console - http://www.elijahmanor.com/grunt-away-those-pesky-console-log-statements/