ASP.NET Web应用程序无法在IE10中运行

时间:2021-08-17 03:18:05

Regards.

问候。

I have noticed that ASP.NET web application is not working in IE10. Grid items are not click-able and several other jscript features do not work.

我注意到ASP.NET Web应用程序在IE10中不起作用。网格项不可单击,其他几个jscript功能不起作用。

I have been digging into this and i found out that ASP.NET fails to detect IE10 causing _doPostBack. Now before i start digging into the problem and searching for available solutions I would like to hear some ideas of fixing the problem.

我一直在挖掘这个,我发现ASP.NET无法检测IE10导致_doPostBack。在我开始深入研究问题并寻找可用的解决方案之前,我想听听一些解决问题的想法。

Let me say that the application is deployed in several dozens of servers and that it works in all browsers except IE10. If clients enable IE9 mode the application works, but still with some strange glitches.

我要说的是,该应用程序部署在几十台服务器中,并且除IE10外,它适用于所有浏览器。如果客户端启用IE9模式应用程序工作,但仍然有一些奇怪的故障。

I would like to know how is this fixable in some easy painless way?

我想知道这是如何以一种轻松无痛的方式解决的?

With kind regards, no9

亲切的问候,没有9

EDIT: I have included the AppBrowsersUpdate via NuGet package manager and deployed the application. But now I am getting this:

编辑:我已经通过NuGet包管理器包含了AppBrowsersUpdate并部署了该应用程序。但现在我得到了这个:

ASP.NET Web应用程序无法在IE10中运行

EDIT2: I have excluded "firefox.browser" from the application. Now the app works, its jst that in IE i am getting the following error:

EDIT2:我从应用程序中排除了“firefox.browser”。现在应用程序正常工作,它在IE中我发现以下错误:

ASP.NET Web应用程序无法在IE10中运行

3 个解决方案

#1


1  

Well temporary I have resolved the issue like this (for anyone needing quick fix this should work), but the downfall is that every single client has to do it.

暂时我已经解决了这样的问题(对于需要快速解决这个问题的人来说应该有用),但是每个客户都必须这样做。

I have enabled compatibility mode in IE10 (ALT, Compatibility settings, add site). This way the browser is running in IE9 compatibility mode.

我在IE10中启用了兼容模式(ALT,兼容性设置,添加站点)。这样浏览器就可以在IE9兼容模式下运行。

For the document mode I added this code to my web.config:

对于文档模式,我将此代码添加到我的web.config:

 <system.webServer>
  ...
  <httpProtocol>
    <customHeaders>
      <clear />
      <add name="X-UA-Compatible" value="IE=9" />
    </customHeaders>
  </httpProtocol>
 </system.webServer>

It works for now, but I still urge anyone that might know the correct solution to my problem.

它现在有效,但我仍然敦促任何可能知道我的问题的正确解决方案的人。

#2


0  

You can get Hotfix for IE10 issues

您可以获取IE10问题的Hotfix

.Net 4 (http://support.microsoft.com/kb/2600088)
.Net 2 (http://support.microsoft.com/kb/2600100, http://support.microsoft.com/kb/2608565)

.Net 4(http://support.microsoft.com/kb/2600088).Net 2(http://support.microsoft.com/kb/2600100,http://support.microsoft.com/kb/2608565)

You can get references from http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/790ca046-73c4-4b0c-8e0d-1db5190c988b

您可以从http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/790ca046-73c4-4b0c-8e0d-1db5190c988b获取参考资料。

Its help me lot to solve IE10 issues.

它帮助我解决IE10问题。

#3


0  

Scott wrote good article about it awhile ago.

斯科特不久前写了很好的文章。

In a nutshell there are two ways to fix the issue:

简而言之,有两种方法可以解决这个问题:

  1. Update all your ASP.NET web apps with appropriate version of the App_BrowsersUpdate NuGet package which is designed to solve this issue.
  2. 使用适当版本的App_BrowsersUpdate NuGet包更新所有ASP.NET Web应用程序,该程序包旨在解决此问题。
  3. Update all machines that use your web site with the following KBs
    1. .NET 4 - http://support.microsoft.com/kb/2600088
    2. .NET 4 - http://support.microsoft.com/kb/2600088
    3. .NET 2.0 - http://support.microsoft.com/kb/2600100
    4. .NET 2.0 - http://support.microsoft.com/kb/2600100
  4. 使用以下KB更新所有使用您的网站的计算机.NET 4 - http://support.microsoft.com/kb/2600088 .NET 2.0 - http://support.microsoft.com/kb/2600100

#1


1  

Well temporary I have resolved the issue like this (for anyone needing quick fix this should work), but the downfall is that every single client has to do it.

暂时我已经解决了这样的问题(对于需要快速解决这个问题的人来说应该有用),但是每个客户都必须这样做。

I have enabled compatibility mode in IE10 (ALT, Compatibility settings, add site). This way the browser is running in IE9 compatibility mode.

我在IE10中启用了兼容模式(ALT,兼容性设置,添加站点)。这样浏览器就可以在IE9兼容模式下运行。

For the document mode I added this code to my web.config:

对于文档模式,我将此代码添加到我的web.config:

 <system.webServer>
  ...
  <httpProtocol>
    <customHeaders>
      <clear />
      <add name="X-UA-Compatible" value="IE=9" />
    </customHeaders>
  </httpProtocol>
 </system.webServer>

It works for now, but I still urge anyone that might know the correct solution to my problem.

它现在有效,但我仍然敦促任何可能知道我的问题的正确解决方案的人。

#2


0  

You can get Hotfix for IE10 issues

您可以获取IE10问题的Hotfix

.Net 4 (http://support.microsoft.com/kb/2600088)
.Net 2 (http://support.microsoft.com/kb/2600100, http://support.microsoft.com/kb/2608565)

.Net 4(http://support.microsoft.com/kb/2600088).Net 2(http://support.microsoft.com/kb/2600100,http://support.microsoft.com/kb/2608565)

You can get references from http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/790ca046-73c4-4b0c-8e0d-1db5190c988b

您可以从http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/790ca046-73c4-4b0c-8e0d-1db5190c988b获取参考资料。

Its help me lot to solve IE10 issues.

它帮助我解决IE10问题。

#3


0  

Scott wrote good article about it awhile ago.

斯科特不久前写了很好的文章。

In a nutshell there are two ways to fix the issue:

简而言之,有两种方法可以解决这个问题:

  1. Update all your ASP.NET web apps with appropriate version of the App_BrowsersUpdate NuGet package which is designed to solve this issue.
  2. 使用适当版本的App_BrowsersUpdate NuGet包更新所有ASP.NET Web应用程序,该程序包旨在解决此问题。
  3. Update all machines that use your web site with the following KBs
    1. .NET 4 - http://support.microsoft.com/kb/2600088
    2. .NET 4 - http://support.microsoft.com/kb/2600088
    3. .NET 2.0 - http://support.microsoft.com/kb/2600100
    4. .NET 2.0 - http://support.microsoft.com/kb/2600100
  4. 使用以下KB更新所有使用您的网站的计算机.NET 4 - http://support.microsoft.com/kb/2600088 .NET 2.0 - http://support.microsoft.com/kb/2600100