3

When I hit the 'Insert image' button in the rich text editor bar, the modal opens but then an error page appears:

Details of exception: System.NullReferenceException: Object reference not set to an instance of an object

Stacktrace:
[NullReferenceException: De objectverwijzing is niet op een exemplaar van een object ingesteld.]
umbraco.controls.Images.ImageViewer.OnPreRender(EventArgs e) +70
System.Web.UI.Control.PreRenderRecursiveInternal() +83
System.Web.UI.Control.PreRenderRecursiveInternal() +168
System.Web.UI.Control.PreRenderRecursiveInternal() +168
System.Web.UI.Control.PreRenderRecursiveInternal() +168
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +974

Versiondata: Microsoft .NET Framework Versie:4.0.30319; ASP.NET Versie:4.0.30319.17929 

Running Umbraco 6.1.3 on localhost and on server, both give the error. I have already tried to replace the umbraco.dll and umbraco.editorControls.dll with fresh ones, but to no avail. I also checked all my datatypes, but none are corrupt (as per Rich Text Editor and Inserting Images getting error and http://our.umbraco.org/forum/using/ui-questions/39103-Problem-with-Rich-Text-Editor-and-Inserting-Images). I am using uComponents, but I have the most recent version (5.5.0)

4

2 回答 2

1

如果这是以前版本的更新,请检查配置设置是否全部存在,尤其是特定于媒体文件夹的设置。这听起来像一个设置只是不存在。

此外,我经常忘记在我的 Visual Studio 项目中“包含”所有文件,所以当我发布时,不会包含任何新文件。

于 2013-08-20T13:08:31.263 回答
0

当我将安装从 v6.1.1 升级到 v6.1.6 时出现此错误。尽管官方说明只需要更新 bin 文件夹,但事实并非如此。您还需要确保使用 /Umbraco 和 /Umbraco_client 下的最新文件。例如,如果您检查 /Umbraco/Controls/Images 中的命名空间,您会看到它现在位于不同的命名空间中

'<%@ Control Language="C#" AutoEventWireup="True" CodeBehind="ImageViewer.ascx.cs" Inherits="Umbraco.Web.UI.Umbraco.Controls.Images ... %>

到原文:

'<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ImageViewer.ascx.cs" Inherits="umbraco.controls.Images.ImageViewer" %>'

我已经与 Umbraco 合作了六个多月,在那段时间里,我还没有看到他们提供的准确或完整的文件。FFS。

于 2013-10-17T15:47:52.930 回答