【发布时间】:2017-01-15 08:34:36
【问题描述】:
在使用 Sitecore 8.1 配置 SOLR 6.3 时出现此错误。我已完成以下帖子中的所有步骤,但在完成步骤后,我收到以下错误:
已添加名为“sitecore_marketingdefinitions_master”的索引。
说明:在执行当前 Web 请求期间发生未处理的异常。请查看堆栈跟踪以获取有关错误及其源自代码的位置的更多信息。
异常详细信息:System.InvalidOperationException:已添加名为“sitecore_marketingdefinitions_master”的索引。
来源错误:
在执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪来识别有关异常起源和位置的信息。
堆栈跟踪:
[InvalidOperationException:已添加名为“sitecore_marketingdefinitions_master”的索引。] Sitecore.Diagnostics.Assert.IsFalse(布尔条件,字符串消息)+81 Sitecore.ContentSearch.ContentSearchConfiguration.AddIndex(ISearchIndex index) +185
[TargetInvocationException:调用的目标已抛出异常。] System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0 System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) +128 System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] 参数, CultureInfo 文化) +146 Sitecore.Configuration.DefaultFactory.AssignProperties(对象 obj,对象 [] 属性)+869 Sitecore.Configuration.DefaultFactory.AssignProperties(XmlNode configNode, String[] 参数, Object obj, Boolean assert, Boolean deferred, IFactoryHelper helper) +655 Sitecore.Configuration.DefaultFactory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper) +322 Sitecore.Configuration.DefaultFactory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert) +72 Sitecore.Configuration.DefaultFactory.CreateObject(String configPath, String[] parameters, Boolean assert) +619 Sitecore.ContentSearch.ContentSearchManager.get_SearchConfiguration() +262 Sitecore.ContentSearch.SolrProvider.SolrContentSearchManager.get_Cores() +92 Sitecore.ContentSearch.SolrProvider.SolrNetIntegration.DefaultSolrStartUp.Initialize() +255 (对象,对象[])+71 Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +484 Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain) +22 Sitecore.Nexus.Web.HttpModule.Application_Start() +259 Sitecore.Nexus.Web.HttpModule.Init(HttpApplication 应用程序) +704 System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +618 System.Web.HttpApplication.InitSpecial(HttpApplicationState 状态,MethodInfo[] 处理程序,IntPtr appContext,HttpContext 上下文)+172 System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +402 System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +343
[HttpException (0x80004005): 调用目标抛出异常。] System.Web.HttpRuntime.FirstRequestInit(HttpContext 上下文)+579 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext 上下文)+112 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +712
【问题讨论】:
-
你能检查你所有的配置文件“sitecore_marketingdefinitions_master”吗?似乎该索引定义可能存在两次。