How to get your ASP.NET application working in IE11
来源:互联网 发布:java swing 按键监听 编辑:程序博客网 时间:2024/06/06 03:14
Let me guess – you just updated to Internet Explorer 11 and found that the ASP.NET project you are working on fails miserably? You can’t recognize your broken layout, content is all over the place, and you get tons of JavaScript errors?
This post shows you how to update your server to recognize IE11.
The Problem
The problem is quite trivial – a bug in the browser detection under .NET 4. Perhaps you remember how IE10 came out and broke your pages with lots of JavaScript errors? The issue here is the same – these browsers were released after .NET4 and it does not recognize their User-Agent request header.
You can verify that browser detection is causing a problem by using Internet Explorer’s F12 Development tool to temporarily change the User-Agent string sent by the browser. To do so:
- Press F12.
- Click the Emulation button at the bottom left.
- Choose Internet Explorer 9 from the dropdown list.
- After the page refreshes, check to see if the page renders correctly.
The Solutions
Of course, you can’t ask your users to do this—but you have three possible solutions to fix your site. I will list them here in the order I suggest you try them. If one does not work, move over to the next:
- Install .NET 4.5 on the server – it has the browser detection problem fixed, so you should be all set. We all love simple things – automated installations, cars that drive themselves :)
- Yes, I know, .NET 4.5 isn’t available for Windows 2003 Server. Patches are available from Microsoft to update browser detection for older framework versions. (If you tried installing before mid-December 2013, uninstall it and try again.)
- If you are still reading, then you may need to update the actual application. Open the App_Browsers folder.
- If it has any contents that you do not need – delete them and try again.
- If it is empty, the patch failed, and you cannot install .NET 4.5 – add a .browser file that has the correct definitions. I’ve gone and made things easy for you – click this link to download a custom .browser file with the IE11 fix.
That wasn’t so hard, was it?
I hope this was yet another way Telerik helped with your development :)
- How to get your ASP.NET application working in IE11
- How to get current thread ID in asp.net
- Working on your thesis: how to get started and how to keep it going?
- How to get JNDI working in Geronimo 2.0
- how to get cwd(current working directory) in python?
- How to use AspnetUpload™ in your web application
- How to embed VideoIO in your Flex/Flash application?
- [Bootstrap] How to use bootstrap in your application?
- How to Reference and Use JSTL in your Web Application
- How To Get a Jump Start In Your Programming Career
- How to Get More Grit in Your Life (Rebroadcast)
- How to bootstrap two angular apps in one asp.net mvc application
- 四级范文(五)How to Increase Your Working Experience in University
- How to Print in ASP.NET 2.0
- How to add a Custom Pull to Refresh in your iOS Application
- How to: Configure Network Tracing in .NET application
- How To Debug an ASP.NET Web Application
- How To: Make VirtualBox Use Your Router’s DHCP to get an IP Address in Linux
- 小花育苗基质溲疏的养护技巧
- 盐碱地治理-泥炭土方法
- 6年漂泊,回来了
- OC方法关键字
- HDU 4373 Mysterious For
- How to get your ASP.NET application working in IE11
- EBoot支持SD卡下载升级Bootloader和WinCE系统
- OpenCV---在图片上添加文字
- Hbase与MapReduce
- nyoj-803-A/B Problem
- magent编译安装及常见错误
- mac os jdk1.7 还原成1.6
- hdu-1213-How Many Tables
- C++ Socket编程 基础三:网络嗅探器Sniffer