我们有一个Sitecore 6.4安装(Sitecore.NET 6.4.1(修订版110621)),已部署到负载平衡环境中的两台服务器上。对于一台(只有一台)服务器,当您在内容编辑器中浏览内容树时,将收到如下所示的堆栈跟踪。它并不总是错误,但是一旦您看到错误,它总是会发生。
[NullReferenceException: Object reference not set to an instance of an object.]
Sitecore.Shell.Applications.ContentManager.ContentEditorForm.OnLoad(EventArgs e) +1636
[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner) +0
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +639
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +38
System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) +35
Sitecore.Reflection.ReflectionUtil.CallMethod(Type type, Object obj, String methodName, Boolean includeNonPublic, Boolean includeInherited, Object[] parameters) +37
Sitecore.Reflection.ReflectionUtil.CallMethod(Object obj, String methodName, Boolean includeNonPublic, Boolean includeInherited, Object[] parameters) +66
Sitecore.Web.UI.Sheer.ClientPage.OnLoad(EventArgs e) +420
System.Web.UI.Control.LoadRecursive() +71
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3064
最佳答案
正如@ techphoria414所说,请确保您已阅读Scalability Guide,并确保已将..Website\App_Config\Include\ScalabilitySettings.config.example
重命名为ScalabilitySettings.config
,并检查了该配置中的各种设置。
关于sitecore - 浏览Sitecore内容树时出现NullReferenceException,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/12057816/