ASP.NET项目与IE10、IE11不兼容的解决办法

1.解决办法

机器级别修复, 服务器所有ASP.NET程序受益

  需要去微软下载对应asp.NET版本的修补程序 

.NET 4 -http://support.microsoft.com/kb/2600088

.NET 2.0

http://support.microsoft.com/kb/2600100 for Win7 SP1/Windows Server 2008 R2 SP1, Windows Vista/Server 2008, Windows XP/Server 2003

http://support.microsoft.com/kb/2608565 for Win7/Windows Server 2008 R2 RTM 

仅仅修复单个站点

下载适合版本的ie.browser 拷贝到App_Browsers/文件下 文件下载地址

.NET2.0 推荐使用App_BrowsersUpdate/projects/net40/ie.browser 可以兼容IE10

2.简单介绍App_Browsers文件夹及.browser文件 

\App_Browsers文件夹

放置.browser文件(用于标识发出请求的浏览器,并标识这些浏览器具备的功能)。

默认.browser文件列表在C:\windows\Microsoft.NET\Framework\v2.0.50727\CONFIG\Browsers中,可全局访问。若要修改定制,只要把相应.browser文件复制到应用程序的\App_Browsers文件夹中修改即可。 

.browser文件 

浏览器文件,采用XML文件格式如:

<browsers>
<!-- Mozilla/5.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4325) -->
<browser id="IE6Plus" parentID="IE">
<identification>
<capability name="majorversion" match="^[6-9]|\d{2,}$" />
</identification>

<capabilities>
<capability name="ecmascriptversion" value="3.0" />
<capability name="jscriptversion" value="5.6" />
<capability name="javascript" value="true" />
<capability name="javascriptversion" value="1.5" />
<capability name="msdomversion" value="${majorversion}.${minorversion}" />
<capability name="w3cdomversion" value="1.0" />
<capability name="ExchangeOmaSupported" value="true" />
<capability name="activexcontrols" value="true" />
<capability name="backgroundsounds" value="true" />
<capability name="cookies" value="true" />
<capability name="frames" value="true" />
<capability name="javaapplets" value="true" />
<capability name="supportsCallback" value="true" />
<capability name="supportsFileUpload" value="true" />
<capability name="supportsMultilineTextBoxDisplay" value="true" />
<capability name="supportsMaintainScrollPositionOnPostback" value="true" />
<capability name="supportsVCard" value="true" />
<capability name="supportsXmlHttp" value="true" />
<capability name="tables" value="true" />
<capability name="supportsAccessKeyAttribute" value="true" />
<capability name="tagwriter" value="System.Web.UI.HtmlTextWriter" />
<capability name="vbscript" value="true" />
</capabilities>
</browser>
</browsers>

posted @ 2013-11-30 20:15  Ranran  阅读(3872)  评论(0编辑  收藏  举报