THIS IS ARCHIVED DOCUMENTATION

The Indexing Manager Is Reporting an Error

Symptoms

After installing Coveo for Sitecore or another package (Media Framework Brightcove, for example), the Indexing Manager is reporting an error page like this one:

Server Error in '/' Application.
​
Constructor on type 'Sitecore.ContentSearch.LuceneProvider.LuceneSearchFieldConfiguration' not found.
​
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
​
Exception Details: System.MissingMethodException: Constructor on type 'Sitecore.ContentSearch.LuceneProvider.LuceneSearchFieldConfiguration' not found.
​
Source Error:
​
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
​
Stack Trace:
​
[MissingMethodException: Constructor on type 'Sitecore.ContentSearch.LuceneProvider.LuceneSearchFieldConfiguration' not found.]
   System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) +14297981
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +198
   System.Activator.CreateInstance(Type type, Object[] args) +117
   Coveo.Framework.Utils.CoveoReflectionFactory.CreateInstanceGeneric(Type p_Type, Object[] p_Params) +161
​
[ReflectionException: CreateInstanceGeneric<TType> (Type p_Type, object[] p_Params): Sitecore.ContentSearch.LuceneProvider.LuceneSearchFieldConfiguration failed.]
   Coveo.Framework.Utils.CoveoReflectionFactory.CreateInstanceGeneric(Type p_Type, Object[] p_Params) +398
   Coveo.Framework.Utils.CoveoReflectionFactory.CreateInstanceGeneric(String p_ObjectTypeName, Object[] p_Params) +171
   Coveo.Framework.Fields.CoveoFieldMapBase.CreateConfig(String p_Name, String p_FieldTypeName, String p_InputTypeName, String p_ReturnTypeName, String p_TypeconverterName, String p_SettingTypeInfoName, String p_IsFacet, String p_IsSortable, String p_IsMultiValue, String p_IsFreeText, String p_IsExternal, XmlNodeList p_ConfigNodeList) +817
​
[FieldMapException: COVEO_FIELD_MAP_EXCEPTION : Unable to create instance of: Sitecore.ContentSearch.LuceneProvider.LuceneSearchFieldConfiguration, Sitecore.ContentSearch.LuceneProvider]
   Coveo.Framework.Fields.CoveoFieldMapBase.CreateConfig(String p_Name, String p_FieldTypeName, String p_InputTypeName, String p_ReturnTypeName, String p_TypeconverterName, String p_SettingTypeInfoName, String p_IsFacet, String p_IsSortable, String p_IsMultiValue, String p_IsFreeText, String p_IsExternal, XmlNodeList p_ConfigNodeList) +1142
   Coveo.Framework.Fields.CoveoFieldMapBase.CreateFieldConfiguration(String p_FieldNameValue, String p_FieldTypeNameValue, XmlNode p_ConfigNode) +695
   Coveo.Framework.Fields.CoveoFieldMapBase.AddFieldByFieldName(XmlNode p_ConfigNode) +183
​
[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0
   System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) +76
   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +211
   System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) +35
   Sitecore.Configuration.Factory.AssignProperties(Object obj, Object[] properties) +832
   Sitecore.Configuration.Factory.AssignProperties(XmlNode configNode, String[] parameters, Object obj, Boolean assert, Boolean deferred, IFactoryHelper helper) +759
   Sitecore.Configuration.Factory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper) +296
   Sitecore.Configuration.Factory.GetInnerObject(XmlNode paramNode, String[] parameters, Boolean assert) +117
   Sitecore.Configuration.Factory.AssignProperties(XmlNode configNode, String[] parameters, Object obj, Boolean assert, Boolean deferred, IFactoryHelper helper) +577
   Sitecore.Configuration.Factory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper) +296
   Sitecore.Configuration.Factory.GetInnerObject(XmlNode paramNode, String[] parameters, Boolean assert) +117
   Sitecore.Configuration.Factory.AssignProperties(XmlNode configNode, String[] parameters, Object obj, Boolean assert, Boolean deferred, IFactoryHelper helper) +577
   Sitecore.Configuration.Factory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper) +296
   Sitecore.Configuration.Factory.GetInnerObject(XmlNode paramNode, String[] parameters, Boolean assert) +1090
   Sitecore.Configuration.Factory.AssignProperties(XmlNode configNode, String[] parameters, Object obj, Boolean assert, Boolean deferred, IFactoryHelper helper) +577
   Sitecore.Configuration.Factory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper) +296
   Sitecore.Configuration.Factory.CreateObject(String configPath, String[] parameters, Boolean assert) +666
   Sitecore.ContentSearch.ContentSearchManager.get_SearchConfiguration() +281
   Sitecore.ContentSearch.Client.Forms.IndexingManagerWizard.BuildIndexes() +163
​
[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0
   System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) +76
   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +211
   System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) +35
   Sitecore.Web.UI.Sheer.ClientPage.OnLoad(EventArgs e) +337
   System.Web.UI.Control.LoadRecursive() +71
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3178
​
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34212

Cause

The current Sitecore configuration contains incorrect settings. For example, the Brightcove Framework specifically uses the Lucene field definitions, while the Coveo fields are defined as the default configuration.

Resolution

Depending on your current configuration, two solutions exist.

  • Validate that all references to contentSearch/configuration/defaultIndexConfiguration are only for the Coveo indexes. Every other index should use the preferred indexing solution only. For example, the Brightcove index which looks like this:

      <!--
        DefaultIndexConfiguration - SC 7.0 Update 1
        defaultIndexConfiguration - SC 7.0 Update 2
      -->
      <configuration ref="contentSearch/configuration/defaultIndexConfiguration | contentSearch/configuration/DefaultIndexConfiguration | contentSearch/indexConfigurations/defaultLuceneIndexConfiguration">
        <IndexAllFields>true</IndexAllFields>
        <fieldMap ref="contentSearch/configuration/defaultIndexConfiguration/fieldMap | contentSearch/configuration/DefaultIndexConfiguration/fieldMap | contentSearch/indexConfigurations/defaultLuceneIndexConfiguration/fieldMap">
          <fieldNames hint="raw:AddFieldByFieldName">
          ...
    

    should instead look like this:

      <!--
        DefaultIndexConfiguration - SC 7.0 Update 1
        defaultIndexConfiguration - SC 7.0 Update 2
      -->
      <configuration ref="contentSearch/indexConfigurations/defaultLuceneIndexConfiguration">
        <IndexAllFields>true</IndexAllFields>
        <fieldMap ref="contentSearch/indexConfigurations/defaultLuceneIndexConfiguration/fieldMap">
          <fieldNames hint="raw:AddFieldByFieldName">
          ...