页面中使用了一个freeTextBox文本编辑器,程序运行后有时第一次点击出现下面的错误,有时第一次点击不出错。但肯定第一次错误后,再点击就不出错了,帮忙给看一下吧。谢谢了。这控件已加入到网站中,工具箱中也可以找到。错误提示:
未将对象引用设置到对象的实例。 
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.NullReferenceException: 未将对象引用设置到对象的实例。源错误: 执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。  堆栈跟踪: 
[NullReferenceException: 未将对象引用设置到对象的实例。]
   FreeTextBoxControls.Support.ResourceManager.LoadResource(Hashtable target, String language, String cacheKey) +485
   FreeTextBoxControls.Support.ResourceManager.GetResources() +268
   FreeTextBoxControls.Support.ResourceManager.GetString(String name) +58
   FreeTextBoxControls.Support.Helper.PopulateDefaultDropDownList(ToolbarDropDownList toolbarDropDownList, FreeTextBox freeTextBox, ResourceManager resourceManager) +5753
   FreeTextBoxControls.FreeTextBox.OnPreRender(EventArgs e) +645
   System.Web.UI.Control.PreRenderRecursiveInternal() +77
   System.Web.UI.Control.PreRenderRecursiveInternal() +161
   System.Web.UI.Control.PreRenderRecursiveInternal() +161
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1360 
--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:2.0.50727.1433; ASP.NET 版本:2.0.50727.1879 

解决方案 »

  1.   

    <FTB:FreeTextBox ID="Article_Content" runat="server"  Language="zh-cn" ImageGalleryPath="~/UpImages/WebAdmin" ImageGalleryUrl="ftb.imagegallery.aspx?rif={0}&cif={0}" ToolbarLayout="ParagraphMenu,FontFacesMenu,FontSizesMenu,FontForeColorsMenu,FontForeColorPicker,FontBackColorsMenu,FontBackColorPicker|Bold,Italic,Underline,Strikethrough,Superscript,Subscript,RemoveFormat|JustifyLeft,JustifyRight,JustifyCenter,JustifyFull;BulletedList,NumberedList,Indent,Outdent;CreateLink,Unlink,InsertImage|Cut,Copy,Paste,Delete;Undo,Redo,Print,Save|SymbolsMenu,StylesMenu,InsertHtmlMenu|InsertRule,InsertDate,InsertTime|InsertTable,EditTable;InsertTableRowAfter,InsertTableRowBefore,DeleteTableRow;InsertTableColumnAfter,InsertTableColumnBefore,DeleteTableColumn|InsertForm,InsertTextBox,InsertTextArea,InsertRadioButton,InsertCheckBox,InsertDropDownList,InsertButton|InsertDiv,EditStyle,InsertImageFromGallery,Preview,SelectAll,WordClean,NetSpell" BackColor="200, 218, 238">            </FTB:FreeTextBox>  我把属性中的Language="zh-cn" 去掉就行了,奇怪,不支持中文?