2

当我在富文本编辑器中单击“插入图片”时,出现的框显示服务器错误...(见下文)

    Server Error in '/' Application.

Object reference not set to an instance of an object.

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.NullReferenceException: Object reference not set to an instance of an object.

Source Error: 


[No relevant source lines]

Source File: c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\9859ef3d\cb984e77\App_Web_uploadmediaimage.ascx.c3c18f9f.sp-vjjqb.0.cs    Line: 0 

Stack Trace: 


[NullReferenceException: Object reference not set to an instance of an object.]
   umbraco.cms.businesslogic.datatype.DataTypeDefinition.GetByDataTypeId(Guid DataTypeId) +77
   umbraco.controls.Images.UploadMediaImage..ctor() +88
   ASP.umbraco_controls_images_uploadmediaimage_ascx..ctor() in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\9859ef3d\cb984e77\App_Web_uploadmediaimage.ascx.c3c18f9f.sp-vjjqb.0.cs:0
   ASP.umbraco_plugins_tinymce3_insertimage_aspx.__BuildControlMediaUploader() in c:\SequreDev\SQDev\Umbraco\plugins\tinymce3\insertImage.aspx:187
   ASP.umbraco_plugins_tinymce3_insertimage_aspx.__BuildControlpane_upload() in c:\SequreDev\SQDev\Umbraco\plugins\tinymce3\insertImage.aspx:186
   ASP.umbraco_plugins_tinymce3_insertimage_aspx.__BuildControlForm1() in c:\SequreDev\SQDev\Umbraco\plugins\tinymce3\insertImage.aspx:150
   ASP.umbraco_plugins_tinymce3_insertimage_aspx.__BuildControlTree(umbraco_plugins_tinymce3_insertimage_aspx __ctrl) in c:\SequreDev\SQDev\Umbraco\plugins\tinymce3\insertImage.aspx:1
   ASP.umbraco_plugins_tinymce3_insertimage_aspx.FrameworkInitialize() in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\9859ef3d\cb984e77\App_Web_insertimage.aspx.43b758d9.m5dvbuf5.0.cs:0
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +71
   System.Web.UI.Page.ProcessRequest() +268
   System.Web.UI.Page.ProcessRequest(HttpContext context) +166
   ASP.umbraco_plugins_tinymce3_insertimage_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\9859ef3d\cb984e77\App_Web_insertimage.aspx.43b758d9.m5dvbuf5.0.cs:0
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +624
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +269

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272
4

1 回答 1

1

我发现这个问题可能是由损坏的数据类型引起的。看看这个 Umbraco 表格帖子:

http://our.umbraco.org/forum/using/ui-questions/39103-Problem-with-Rich-Text-Editor-and-Inserting-Images

我发现当我一次检查一个数据类型时,301 重定向会引发错误。当我删除它时,RTE 中的媒体选择器再次显示

我希望这有帮助。

大号

于 2013-03-27T10:47:47.737 回答