Posts

Showing posts from June, 2021

Could not create instance of type: Sitecore.ContentSearch.Azure.CloudSearchProviderIndex. No matching constructor was found

Image
A. Scenario Open Indexing Manager in Sitecore dashboard, the error below appears B. Triaging My Sitecore instance was deployed on Azure by another party. It was configured to used SOLR cloud as search engine. I want to switch to Azure Cognitive Search.  It was supposed to be a simple switch by updating the app setting value in the web.config from  < add key= "search:define" value = "Solr" /> to  < add key= "search:define" value = "Azure" /> But it was not. C. Debugging Step 1: Understand basic knowledge For each of the indexes found in the Indexing Manager, it is created from a config file. For example, the  sitecore_testing_index is configured with either  Sitecore.ContentTesting.Solr.IndexConfiguration.config or  Sitecore.ContentTesting.Azure.IndexConfiguration.config Depending on whether we use the search:define value as Solr/Azure, one file will be activated and the other one will be deactivated accordingly. Looking at the 

[Azure App Service] Error Rendering Sitecore.JavaScriptServices.ViewEngine.Presentation.JsLayoutRenderer: Value cannot be null. Parameter name: address

Image
Scenario : Sitecore deployed on Azure App Service running JSS in Integrated Mode. I ran everything by the book (aka followed the link here: https://jss.sitecore.com/docs/techniques/azure-deployment) doing step 3 & 4 However loading the site and an yellow page of death showing the above error. A few hours of scratching the head and searching the web went by... Found this gem on the web: https://blog.yannickreekmans.be/use-node-js-64-bit-on-azure-app-service/ It turns out that you have to let the App Service know the version of Node.js running on your app service.  So I added this application setting in my app service and it works like a charm: So what went wrong in the guide from Sitecore?  I rechecked step 2 which are mentioned as optional! Well, it is. However don't forget to complete step 2.6 like what I did. Happy Sitecoring!