【问题标题】:Sitecore - Server Error Accessing Content Items (Yellow Screen of Death)Sitecore - 访问内容项目的服务器错误(黄屏死机)
【发布时间】:2013-04-21 01:08:58
【问题描述】:

另一个愚蠢的...尝试访问最初由管理员作为普通用户创建的现有内容项,但得到以下多汁的异常。我可以以该用户的身份查看内容树中的项目,但是当我单击某个项目以查看它时会引发异常(并且可能会在下一步对其进行编辑)。

“/”应用程序中的服务器错误。

不允许使用空 ID。参数名称:displayName

描述:执行过程中发生了未处理的异常 当前的网络请求。请查看堆栈跟踪以获取更多信息 有关错误的信息以及它在代码中的来源。

异常详细信息:System.ArgumentNullException:Null ids 不是 允许。参数名称:displayName

来源错误:

在执行过程中产生了一个未处理的异常 当前的网络请求。有关原产地和位置的信息 可以使用下面的异常堆栈跟踪来识别异常。

堆栈跟踪:

[ArgumentNullException:不允许空 ID。参数名称: 显示名称]
Sitecore.Diagnostics.Assert.ArgumentNotNullOrEmpty(字符串参数, 字符串参数名称) +75
Sitecore.Shell.Applications.ContentEditor.EditorFormatter.RenderSectionBegin(控制 父级,字符串 controlId,字符串 sectionName,字符串 displayName, 字符串图标、Boolean isCollapsed、Boolean renderFields) +69
Sitecore.Shell.Applications.ContentEditor.Pipelines.RenderContentEditor.RenderSkinedContentEditor.RenderSectionPanel(XmlNode 元素)+214
Sitecore.Shell.Applications.ContentEditor.Pipelines.RenderContentEditor.RenderSkinedContentEditor.RenderElement(XmlNode 元素)+487
Sitecore.Shell.Applications.ContentEditor.Pipelines.RenderContentEditor.RenderSkinedContentEditor.AddText(XmlNode 元素)+423
Sitecore.Shell.Applications.ContentEditor.Pipelines.RenderContentEditor.RenderSkinedContentEditor.RenderElement(XmlNode 元素)+533
Sitecore.Shell.Applications.ContentEditor.Pipelines.RenderContentEditor.RenderSkinedContentEditor.AddText(XmlNode 元素)+423
Sitecore.Shell.Applications.ContentEditor.Pipelines.RenderContentEditor.RenderSkinedContentEditor.RenderElement(XmlNode 元素)+533
Sitecore.Shell.Applications.ContentEditor.Pipelines.RenderContentEditor.RenderSkinedContentEditor.Render(XmlDocument 皮肤)+93
Sitecore.Shell.Applications.ContentEditor.Pipelines.RenderContentEditor.RenderSkinedContentEditor.Process(RenderContentEditorArgs 参数)+353(对象,对象[])+61
Sitecore.Pipelines.PipelineMethod.Invoke(Object[] 参数) +36
Sitecore.Pipelines.CoreProcessor.Invoke(Object[] 参数) +43
Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +133
Sitecore.Pipelines.CorePipeline.Run(字符串 pipelineName,PipelineArgs 参数、字符串 pipelineDomain、布尔值 failIfNotExists) +154
Sitecore.Pipelines.CorePipeline.Run(字符串 pipelineName,PipelineArgs 参数,字符串管道域)+64
Sitecore.Pipelines.CorePipeline.Run(字符串 pipelineName,PipelineArgs 参数)+50
Sitecore.Shell.Applications.ContentManager.Editor.Render(RenderContentEditorArgs args,控制父级)+450
Sitecore.Shell.Applications.ContentManager.Editor.Render(项目项, 项目根、哈希表字段信息、控件父级、布尔显示编辑器) +239 Sitecore.Shell.Applications.ContentManager.ContentEditorForm.RenderEditor(项目 项目、项目根、控件父级、布尔显示编辑器)+153
Sitecore.Shell.Applications.ContentManager.ContentEditorForm.UpdateEditor(项目 文件夹、项目根目录、布尔显示编辑器)+238
Sitecore.Shell.Applications.ContentManager.ContentEditorForm.Update() +249 Sitecore.Shell.Applications.ContentManager.ContentEditorForm.OnPreRendered(EventArgs e) +116

[TargetInvocationException: 异常已被目标抛出 调用。]
System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo 方法、对象目标、Object[] 参数、SignatureStruct& sig、 MethodAttributes methodAttributes, RuntimeType typeOwner) +0
System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo 方法, 对象目标、Object[] 参数、签名 sig、MethodAttributes methodAttributes, RuntimeType typeOwner) +69
System.Reflection.RuntimeMethodInfo.Invoke(对象 obj,BindingFlags invokeAttr、Binder binder、Object[] 参数、CultureInfo 文化、 布尔型 skipVisibilityChecks)+306
System.Reflection.RuntimeMethodInfo.Invoke(对象 obj,BindingFlags invokeAttr、Binder binder、Object[] 参数、CultureInfo 文化) +22 System.Reflection.MethodBase.Invoke(Object obj, Object[] 参数) +19
Sitecore.Reflection.ReflectionUtil.InvokeMethod(MethodInfo 方法, Object[] 参数,Object obj) +38
Sitecore.Reflection.ReflectionUtil.CallMethod(类型类型,对象 obj, String methodName, Boolean includeNonPublic, Boolean includeInherited, 布尔型 includeStatic,Object[] 参数)+104
Sitecore.Reflection.ReflectionUtil.CallMethod(类型类型,对象 obj, String methodName, Boolean includeNonPublic, Boolean includeInherited, Object[] 参数)+26
Sitecore.Reflection.ReflectionUtil.CallMethod(对象 obj,字符串 方法名,布尔包括非公共,布尔包括继承, Object[] 参数)+41
Sitecore.Shell.Applications.ContentManager.ContentEditorPage.OnPreRender(EventArgs e) +87 System.Web.UI.Control.PreRenderRecursiveInternal() +150
System.Web.UI.Page.ProcessRequestMain(布尔值 includeStagesBeforeAsyncPoint,布尔型 includeStagesAfterAsyncPoint) +2838

版本信息:Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.0.30319.272

【问题讨论】:

  • 以admin用户登录能看到项目吗?
  • @CraigTaylor - 当我以管理员身份登录时,我绝对可以看到该项目,但我也可以作为编辑帐户在树中看到它。哦,我也会在上面添加,但是当我单击该项目进行编辑时出现错误。
  • 下次遇到此错误。清除缓存并刷新页面。

标签: content-management-system sitecore


【解决方案1】:

因此,在找到以下答案后,我返回并删除了该帐户上设置的所有自定义访问权限(这解决了我的问题):

一条很长的消息,但对于查找 解决方案。

我发现唯一有用的是 http://egointeractive.posterous.com/argumentnullexception-null-ids-are-not-allowe

其中提到了由于读取权限被拒绝而发生的相同事情 在模板上。

这确实解决了问题,给了我另一个 - 一些字段上的一些 模板不应该对特定用户可见。幸运的是答案 对那个很容易:我需要做的就是否认这个领域 阅读权,而不是阅读权。

参考: http://trayek.wordpress.com/2013/03/21/sitecore-content-editor-woes/

为了后代,这里是完整的后代 (RIP) 链接:

[ArgumentNullException]:不允许空 ID。参数名称: displayName 我在设置一个受限用户后遇到了这个错误 读/写权限。我创建了一个自定义角色,分配了“Sitecore” 客户端作者”和“Sitecore 客户端用户”,将用户分配给 角色,并检查他们是否可以登录并查看内容树。 一切似乎都很好,直到我尝试点击任何项目 在“家”下。在某些情况下,会发生以下两种情况之一:我得到了 此错误:[ArgumentNullException]: Null ids are not allowed。 参数名称:displayName 我知道应该有字段的项目, 我没有尝试过不同的角色组合(包括放弃我的 自定义角色并仅使用 Sitecore 的默认值),但我仍然遇到 问题 - 再次,仅在某些项目上。据我所知, 管理员是唯一能够查看项目的用户,并且有 没有没有管理员权限的工作用户示例。

该网站最近从 Sitecore 5 升级(我不确定 哪个版本)到 Sitecore 6.3.1(修订版 110112),据我所知, 直到这一点之后,问题才变得明显。 我以前在几乎完全相同的情况下看到过错误, 所以我敢打赌它与升级有关。

当我查看用户创建模板的权限时(不是 系统模板)权限,我注意到继承已经 很多模板的部分/字段子项被拒绝。一世 看不出为什么会这样,所以我花了一些 是时候摆脱显式拒绝了(其中有 50 多个案例) 这个特定的安装)-嘿,错误消失了!我不得不 使用安全编辑器功能区中的“删除继承”按钮;使用 “分配”或取消选中“继承”中的 [X] 该项目的权限无效。

参考:http://web.archive.org/web/20130317212504/http://egointeractive.posterous.com/argumentnullexception-null-ids-are-not-allowe

【讨论】:

猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2011-01-21
  • 2011-01-11
  • 2013-11-28
  • 1970-01-01
  • 2013-04-21
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多