我有一个 NullReferenceException 但是当我试图保存布局页面时。我正在使用电子邮件营销管理器。我已经构建了一个布局页面(ASPX),其中包含几个链接到自定义子布局(ASCX)的占位符
通过电子邮件管理器(“添加到此处”)添加这些子布局表单后,我单击保存按钮并收到错误消息:
[NullReferenceException: Object reference not set to an instance of an object.]
Sitecore.Modules.EmailCampaign.Core.MessageRelationsCorrector.ReplaceItemPaths(LayoutDefinition layout) +164
Sitecore.Modules.EmailCampaign.Core.MessageRelationsCorrector.CorrectItemRelations(WebPageMail message) +236
Sitecore.Modules.EmailCampaign.Pipelines.CorrectMessageRelations.Process(SaveArgs args) +268
[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.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner) +72
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +251
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +28
Sitecore.Pipelines.Processor.Invoke(PipelineArgs args) +262
Sitecore.Nexus.Pipelines.NexusPipelineApi.Resume(PipelineArgs args, Pipeline pipeline) +225
Sitecore.Pipelines.Pipeline.Resume() +39
Sitecore.Pipelines.Pipeline.DoStart(PipelineArgs args) +115
Sitecore.Pipelines.Pipeline.Start(PipelineArgs args, Boolean atomic) +133
Sitecore.Pipelines.Pipeline.Start(PipelineArgs args) +32
Sitecore.Shell.Applications.WebEdit.Commands.Save.Execute(CommandContext context) +669
Sitecore.Shell.Framework.Dispatcher.Dispatch(Message message, CommandContext context) +62
Sitecore.Shell.Framework.Dispatcher.Dispatch(Message message, Item[] items) +110
Sitecore.Shell.Framework.Dispatcher.Dispatch(Message message, Item item) +78
Sitecore.Shell.Applications.WebEdit.WebEditRibbonForm.HandleMessage(Message message) +429
Sitecore.Shell.Framework.Commands.MessageCommand.Execute(CommandContext context) +447
Sitecore.Web.UI.Sheer.ClientPage.Dispatch(String command) +143
Sitecore.Web.UI.Sheer.ClientPage.RaiseEvent() +108
Sitecore.Web.UI.Sheer.ClientPage.OnPreRender(EventArgs e) +624
Sitecore.Shell.Applications.WebEdit.WebEditRibbon.OnPreRender(EventArgs e) +35
System.Web.UI.Control.PreRenderRecursiveInternal() +103
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496
你知道可能是什么原因吗?如果没有,我该如何调试这些错误?