1

Upgrade to 10.3.1

Full error:

Method not found: 'Void Sitecore.ContentSearch.AbstractSearchIndex..ctor(Sitecore.ContentSearch.Abstractions.Factories.IProviderContextFactory, System.String)'.

Any clue what/where to look?

EDIT:

[MissingMethodException: Method not found: 'Void Sitecore.ContentSearch.AbstractSearchIndex..ctor(Sitecore.ContentSearch.Abstractions.Factories.IProviderContextFactory, System.String)'.]
   Sitecore.ContentSearch.Azure.CloudSearchProviderIndex..ctor(String name, String connectionStringName, String totalParallelServices, IIndexPropertyStore propertyStore, String group, ServiceCollectionClient serviceCollectionClient, ICloudSearchProviderIndexName cloudSearchProviderIndexName, AbstractCloudSearchContextFactory contextFactory) +0
   Sitecore.ContentSearch.Azure.CloudSearchProviderIndex..ctor(String name, String connectionStringName, String totalParallelServices, IIndexPropertyStore propertyStore, String group, ServiceCollectionClient serviceCollectionClient) +168
   Sitecore.ContentSearch.Azure.CloudSearchProviderIndex..ctor(String name, String connectionStringName, String totalParallelServices, IIndexPropertyStore propertyStore) +92

[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.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +313
   Sitecore.Reflection.ReflectionUtil.CreateObject(Type type, Object[] parameters) +119
   Sitecore.Configuration.DefaultFactory.CreateFromTypeName(XmlNode configNode, String[] parameters, Boolean assert) +128
   Sitecore.Configuration.DefaultFactory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper) +163
   Sitecore.Configuration.DefaultFactory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert) +72
   Sitecore.Configuration.DefaultFactory.GetInnerObject(XmlNode paramNode, String[] parameters, Boolean assert) +842
   Sitecore.Configuration.DefaultFactory.AssignProperties(XmlNode configNode, String[] parameters, Object obj, Boolean assert, Boolean deferred, IFactoryHelper helper) +545
   Sitecore.Configuration.DefaultFactory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper) +326
   Sitecore.Configuration.DefaultFactory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert) +72
   Sitecore.Configuration.DefaultFactory.CreateObject(String configPath, String[] parameters, Boolean assert) +703
   Sitecore.ContentSearch.ContentSearchManager.get_SearchConfiguration() +309
   System.Lazy`1.CreateValue() +732
   System.Lazy`1.LazyInitValue() +189
   Sitecore.ContentSearch.DefaultSearchIndexes.get_CsConfig() +16
   Sitecore.ContentSearch.DefaultSearchIndexes.GeAllIndexes() +11
   Sitecore.ContentSearch.SolrProvider.SolrNetIntegration.DefaultSolrStartUp..ctor(BaseSearchIndexes indexes) +59
   Sitecore.ContentSearch.SolrProvider.Pipelines.Loader.InitializeSolrProvider.Process(PipelineArgs args) +72
   (Object , Object ) +9
   Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +1268
   Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain, Boolean failIfNotExists) +236
   Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain) +22
   Sitecore.Nexus.Web.HttpModule.Application_Start() +146
   Sitecore.Nexus.Web.HttpModule.Init(HttpApplication app) +918
   System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +584
   System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +168
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +277
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +369

[HttpException (0x80004005): Exception has been thrown by the target of an invocation.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +532
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +111
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +719
3
  • Can you please share the full stack trace?
    – ckhanna
    Commented Oct 2 at 16:28
  • updated above :)
    – bonhaku
    Commented Oct 2 at 16:47
  • I have added the answer below. Let me know in case you face any issues.
    – ckhanna
    Commented Oct 3 at 17:04

1 Answer 1

0

You are getting this error since starting from Sitecore XP 10.2, it is no longer possible to use the Azure Search provider. Details on the Azure Search compatibility can be found here.

You will need to switch to Solr search to resolve this issue. In order to configure Solr Search in the website, below settings needs to be configured.

  1. Inside the App_Config\ConnectionStrings.config file of the website, you will need to provide Solr url.
<add name="solr.search" connectionString="https://localhost:8983/solr">
  1. Change the search provider to Solr inside the Web.config file.
<add key="search:define" value="Solr" />

This will configure your solution to use Solr Search provider. More details on the Solr configuration can be found here.

Hope this helps!!! Let me know in case you have any queries.

12
  • Hello ckhanna, both are already updated, but still same error is encountered
    – bonhaku
    Commented Oct 7 at 5:03
  • @bonhaku Sitecore.ContentSearch.Azure.CloudSearchProviderIndex should only run when search:define configuration is set to Azure. Can you check inside sitecore\admin\showconfig.aspx page is CloudSearchProviderIndex still showing.
    – ckhanna
    Commented Oct 7 at 6:02
  • unfortunately i am not able to load showconfig because it is also server error. is there another way to check this?
    – bonhaku
    Commented Oct 7 at 8:49
  • @bonhaku can we can connect over Sitecore Slack?
    – ckhanna
    Commented Oct 7 at 9:00
  • @bonhaku Can you also make sure you disable all the config files where Sitecore.ContentSearch.Azure.CloudSearchProviderIndex is referred?
    – ckhanna
    Commented Oct 7 at 10:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.