2013-03-11 39 views
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 

回答

1

我有發現這個問題可能是由數據類型損壞引起的。看看這個一把umbraco表單提交:

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

我發現,當我通過我的數據類型去一次一個301重定向是拋出一個錯誤。當我刪除這個在RTE媒體選擇器再次顯示

我希望這可以幫助。

L

+0

我手動點擊每個數據類型,並刪除那些拋出異常,一切都恢復正常。 +1 – 2014-01-21 12:55:48