gpt4 book ai didi

asp.net - IE11 - 未将对象引用设置为 FreeTextBox.RenderTabs 中的对象实例

转载 作者:行者123 更新时间:2023-12-02 17:03:41 25 4
gpt4 key购买 nike

我已将自由文本框与网站集成。

它适用于除最近发布的 IE 11 之外的所有浏览器。

它抛出错误“对象引用未设置到对象的实例。”

以下是错误堆栈跟踪:

 at FreeTextBoxControls.FreeTextBox.RenderTabs(HtmlTextWriter writer) at
FreeTextBoxControls.FreeTextBox.RenderRichEditor(HtmlTextWriter writer) at
FreeTextBoxControls.FreeTextBox.Render(HtmlTextWriter writer) at
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) at
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) at
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) at
ASP.myaspxpage.__Render__control4(HtmlTextWriter __w, Control parameterContainer) in
pathtomyaspxpage:line 505 at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer,
ICollection children) at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) at
System.Web.UI.Control.Render(HtmlTextWriter writer) at
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) at
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) at
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) at
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) at
System.Web.UI.UpdatePanel.RenderChildren(HtmlTextWriter writer) at
System.Web.UI.UpdatePanel.Render(HtmlTextWriter writer) at
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) at
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) at
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) at
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) at
System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) at
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) at
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) at
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) at
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) at
System.Web.UI.Control.Render(HtmlTextWriter writer) at
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) at
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) at
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) at
mymasterpage.__Renderform1(HtmlTextWriter __w, Control parameterContainer) in
pathtomymasterpage:line 87 at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriterwriter,
ICollection children) at System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter
writer) at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) at
System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) at
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) at
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) at
System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) at
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) at
System.Web.UI.Control.Render(HtmlTextWriter writer) at
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) at
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) at
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) at
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) at
System.Web.UI.Page.Render(HtmlTextWriter writer) at
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) at
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) at
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) at
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean
includeStagesAfterAsyncPoint)

如有任何帮助,我们将不胜感激。

谢谢

最佳答案

确认的解决方案:修复未将对象引用设置为对象实例呈现为文本区域的自由文本框问题。

  1. http://freetextbox.com/下载源代码(现在所有人都可以使用源代码)
  2. 打开与您的环境相关的项目文件(例如 FTB3-v2010-NET-3-5)
  3. 编辑文件/Support/BrowserInfo.cs
  4. 找到此行 browserInfo.isIE = (userAgent.IndexOf("msie") > -1) 并将其更改为 browserInfo.isIE = (userAgent.IndexOf("msie") > -1) || (userAgent.IndexOf("三叉戟") > -1);
  5. 通过删除行 [ assembly: AssemblyKeyFile("..\\..\\FreeTextBox.snk")]< 来删除 AssemblyInfo.cs 中的程序集签名(或使用您自己的签名) 并根据需要更改版本号。
  6. 点击编译并使用生成的 DLL(在 ../build 文件夹中)

我能够进行此更改以启用新的 IE 支持。您也可以针对其他浏览器问题对此文件进行更多更改。

关于asp.net - IE11 - 未将对象引用设置为 FreeTextBox.RenderTabs 中的对象实例,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19321078/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com