【发布时间】: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