1

在我们努力让我们的 ASP.NET 站点在 IE10 中正常工作之后 - 具体来说,当服务器无法识别 UA 字符串并且链接按钮无法触发回发时尝试修复 IE10 错误...,我已经复制了 ie。浏览器文件到我的 App_Browsers 文件夹。

参考:Hanselman 的 http://www.hanselman.com/blog/BugAndFixASPNETFailsToDetectIE10CausingDoPostBackIsUndefinedJavaScriptErrorOrMaintainFF5ScrollbarPosition.aspx

由于各种原因,我无法应用机器范围的修复。我的服务器正在运行 .NET 3.5,我也无法更新它。

对于我们的大多数网站,修复就像一个魅力。对于某些站点,它似乎根本不起作用,或者破坏了站点并给出了错误。这些网站使用 CSSFriendly 工具包,因此已经有一个 .browser 文件,其中包含以下内容:

    <browsers>
  <browser refID="Default">
    <controlAdapters>
      <adapter controlType="System.Web.UI.WebControls.TreeView"
               adapterType="SVCN.CSSFriendly.TreeViewAdapter" />
    </controlAdapters>
  </browser>


  <browser id="W3C_Validator" parentID="default">
    <identification>
      <userAgent match="^W3C_Validator" />
    </identification>
    <capabilities>
      <capability name="browser"              value="W3C Validator" />
      <capability name="ecmaScriptVersion"    value="1.2" />
      <capability name="javascript"           value="true" />
      <capability name="supportsCss"          value="true" />
      <capability name="supportsCallback"     value="true" />
      <capability name="tables"               value="true" />
      <capability name="tagWriter"            value="System.Web.UI.HtmlTextWriter" />
      <capability name="w3cdomversion"        value="1.0" />
    </capabilities>
  </browser>
</browsers>

当我收到错误时,如下所示:

Input string was not in a correct format. 
  Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

 Exception Details: System.FormatException: Input string was not in a correct format.

Source Error: 


 An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace: 



[FormatException: Input string was not in a correct format.]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +7470007
   System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +119
   System.Version..ctor(String version) +259
   System.Web.Configuration.HttpCapabilitiesBase.get_MSDomVersion() +52
   System.Web.UI.WebControls.TreeView.EnsureRenderSettings() +96
   System.Web.UI.WebControls.TreeView.OnPreRender(EventArgs e) +43
   System.Web.UI.Control.PreRenderRecursiveInternal() +80
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3615; ASP.NET Version:2.0.50727.3053 

我尝试了多种方法都没有成功。有没有人遇到过这样的问题?

谢谢你的帮助。

4

0 回答 0