Wednesday, January 2, 2019

Sitecore 9.0.0 - Lab 8 - After adding reference to sitecore.contentsearch

Hi Friends,

I was going through the below course:

Sitecore® 9.0 Platform Essentials for Developers eLearning Lab Module Error


In the last lab which is of Module 8, I got the below error and my site stopped working. I was unable to login as the login page was not showing up. 

Server Error in '/' Application.
Method not found: 'System.String Sitecore.ContentSearch.Abstractions.ISettings.GetSetting(System.String, System.String)'.
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: Method not found: 'System.String Sitecore.ContentSearch.Abstractions.ISettings.GetSetting(System.String, System.String)'.

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: Method not found: 'System.String Sitecore.ContentSearch.Abstractions.ISettings.GetSetting(System.String, System.String)'.]
   Sitecore.ContentSearch.SolrProvider.SolrContentSearchManager.get_IsEnabled() +0
   Sitecore.ContentSearch.SolrProvider.Pipelines.Loader.InitializeSolrProvider.Process(PipelineArgs args) +14
   (Object , Object[] ) +71
   Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +469
   Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain) +22
   Sitecore.Nexus.Web.HttpModule.Application_Start() +161


Solution : Sitecore.ContentSearch.NoReferences and Sitecore.ContentSearch.Linq.NoReferences packages that are provided in Student Resources are not compatible with the latest sitecore 9.0.0. version.  So, you need to override the listed DLLs with the one which came with the original setup of sitecore. 


No comments:

Post a Comment