Sitecore 9: System.MissingMethodException: Method not found: 'System.String Sitecore.ContentSearch.Abstractions.ISettings.
Sitecore® 9.0 Platform Essentials for Developers eLearning Lab Module Error
I was recently doing the Sitecore® 9.0 Platform Essentials for Developers eLearning Lab Modules and in last modules I started getting the below error
System.MissingMethodException: Method not found: 'System.String Sitecore.ContentSearch.Abstractions.ISettings.
Out of clue because I did everything as per the guide and end up in error, I figured out from the exception that it has to do with some DLL which is not finding the method the code is trying to reference.
So I backtrack the module and found out that there were two nuget packages were installed and one of them was Sitecore.ContentSearch.dll, So when you publish the site this DLL got overwritten with the existing which was available with existing sitecore installation In your WWWROOOT
I had a back up of the sitecore installation folder from WWWROOT and I took the DLL from that and put replaced it in the WWWROOT folder and to make sure it works now, browse the site and everything started working
May be any of you are facing the same issues, you should have the original DLL from sitecore installation and reference it instead of the nuget package, if the problem still persist (I hope in future this will not be the case with nuget)
Hope it helps !!!
Comments
Post a Comment