我在尝试将任何项目从Sitecore发布到网络时收到此错误。前几天工作正常,不知道我做了什么让这件事崩溃了。
工作已开始:发布到' web' | #Exception: System.Reflection.TargetInvocationException:抛出了异常 通过调用的目标。 ---> System.Reflection.TargetInvocationException:抛出了异常 通过调用的目标。 ---> System.InvalidOperationException: 根项目未定义 Sitecore.Diagnostics.Assert.IsNotNull(对象值,字符串消息)
在Sitecore.Search.Crawlers.DatabaseCrawler.Initialize(索引索引)
在Sitecore.Search.Index.AddCrawler(ICrawler crawler)---结束 内部异常堆栈跟踪--- at System.RuntimeMethodHandle.InvokeMethod(Object target,Object [] 参数,签名sig,布尔构造函数)at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object []参数,Object []参数)at System.Reflection.RuntimeMethodInfo.Invoke(Object obj,BindingFlags invokeAttr,Binder binder,Object []参数,CultureInfo文化)
在System.Reflection.MethodBase.Invoke(Object obj,Object [] 参数)at Sitecore.Configuration.Factory.AssignProperties(Object obj,Object [] 物业) Sitecore.Configuration.Factory.AssignProperties(XmlNode configNode, String []参数,Object obj,布尔断言,布尔延迟, IFactoryHelper helper)at Sitecore.Configuration.Factory.CreateObject(XmlNode configNode, String []参数,布尔断言,IFactoryHelper助手)at Sitecore.Configuration.Factory.GetInnerObject(XmlNode paramNode, String []参数,布尔断言)at Sitecore.Configuration.Factory.AssignProperties(XmlNode configNode, String []参数,Object obj,布尔断言,布尔延迟, IFactoryHelper helper)at Sitecore.Configuration.Factory.CreateObject(XmlNode configNode, String []参数,布尔断言,IFactoryHelper助手)at Sitecore.Configuration.Factory.CreateObject(String configPath, String []参数,布尔断言)at Sitecore.Search.SearchManager.get_SearchConfiguration()at Sitecore.Data.Managers.IndexingManager.UpdateIndexAsync(数据库 数据库)在Sitecore.MainUtil.RaiseEvent [T](EventHandler1 subscribers, Object sender, T eventArgs) at Sitecore.Data.Engines.HistoryEngine.RegisterItemSaved(Item item, ItemChanges changes) at System.EventHandler
1.Invoke(对象发送者, TEventArgs e)at Sitecore.Data.Engines.EngineCommand2.RaiseEvent[TArgs](EventHandler
1 处理程序,Func2 argsCreator) at Sitecore.Data.Engines.EngineCommand
2.Execute()at Sitecore.Data.Engines.DataEngine.SaveItem(Item item)at Sitecore.Data.Managers.ItemProvider.SaveItem(Item item)at Sitecore.Data.Items.ItemEditing.AcceptChanges(布尔 updateStatistics,Boolean silent)at Sitecore.Data.Items.EditContext.Dispose()at Sitecore.Publishing.PublishHelper.CopyToTarget(Item sourceVersion)
在Sitecore.Publishing.PublishHelper.PublishVersionToTarget(Item sourceVersion,Item targetItem,Boolean targetCreated)at Sitecore.Publishing.Pipelines.PublishItem.PerformAction.ExecuteAction(PublishItemContext 上下文) Sitecore.Publishing.Pipelines.PublishItem.PerformAction.Process(PublishItemContext context(at,Object [])at Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args)at Sitecore.Publishing.Pipelines.PublishItem.PublishItemPipeline.Run(PublishItemContext 上下文) Sitecore.Publishing.Pipelines.Publish.ProcessQueue.ProcessEntries(IEnumerable的1 entries, PublishContext context) at Sitecore.Publishing.Pipelines.Publish.ProcessQueue.ProcessEntries(IEnumerable
1 条目,PublishContext上下文)at Sitecore.Publishing.Pipelines.Publish.ProcessQueue.ProcessEntries(IEnumerable的1 entries, PublishContext context) at Sitecore.Publishing.Pipelines.Publish.ProcessQueue.ProcessEntries(IEnumerable
1 条目,PublishContext上下文)at Sitecore.Publishing.Pipelines.Publish.ProcessQueue.Process(PublishContext context(at,Object [])at Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args)at Sitecore.Publishing.Pipelines.Publish.PublishPipeline.Run(PublishContext 在Sitecore.Publishing.Publisher.PublishWithResult()的上下文 ---内部异常堆栈跟踪的结束---在System.RuntimeMethodHandle.InvokeMethod(Object target,Object [] 参数,签名sig,布尔构造函数)at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object []参数,Object []参数)at System.Reflection.RuntimeMethodInfo.Invoke(Object obj,BindingFlags invokeAttr,Binder binder,Object []参数,CultureInfo文化)
在System.Reflection.MethodBase.Invoke(Object obj,Object [] 参数)at(Object,Object [])at Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args)at Sitecore.Jobs.Job.ThreadEntry(对象状态)
答案 0 :(得分:2)
看起来索引配置已损坏。
转到/sitecore/admin/showconfig.aspx
页面,找到:
<locations hint="list:AddCrawler">
检查该节点下的每个位置 - 它们都应该有<Root>
标记,并指定了正确的位置根。