使用Sitecore 8.1配置SOLR 6.3时出现此错误。我已完成以下帖子中的所有步骤,但在完成步骤后,我收到以下错误:
名称为" sitecore_marketingdefinitions_master"的索引已被添加。
描述:执行当前Web请求期间发生了未处理的异常。请查看堆栈跟踪以获取有关错误及其源自代码的位置的更多信息。
异常详细信息:System.InvalidOperationException:名称为" sitecore_marketingdefinitions_master"的索引已被添加。
来源错误:
在执行当前Web请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪来识别有关异常的起源和位置的信息。
堆栈追踪:
[InvalidOperationException:名称为&#34的索引; 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(Object obj,Object [] properties)+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 []参数,布尔断言)+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 (Object,Object [])+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 app)+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 context)+579 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context)+112 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr,HttpContext context)+712
答案 0 :(得分:0)
您的App_Config / Include文件夹中可能仍有 .Lucene。配置尚未被禁用。需要将.disabled添加到所有Lucene配置文件。