【发布时间】:2020-01-27 16:37:55
【问题描述】:
我正在使用 Sitecore 8.2 更新 5。
现在使用https://sitecorerockz.wordpress.com/2018/08/01/lucene-to-solr/ 中提到的步骤从 Lucene 切换到 Solr 6.6.3
我创建了一个诊断页面来检查 Solr 是否正常工作,我收到以下错误 (screenshot):
Exception Details: Ninject.ActivationException: Error activating ISolrOperations{Dictionary{string, Object}}
No matching bindings are available, and the type is not self-bindable.
Activation path:
1) Request for ISolrOperations{Dictionary{string, Object}}
Suggestions:
1) Ensure that you have defined a binding for ISolrOperations{Dictionary{string, Object}}.
2) If the binding was defined in a module, ensure that the module has been loaded into the kernel.
3) Ensure you have not accidentally created more than one kernel.
4) If you are using constructor arguments, ensure that the parameter name matches the constructors parameter name.
5) If you are using automatic module loading, ensure the search path and filters are correct.
来源错误:
protected override object DoGetInstance(Type serviceType, string key) {
return _kernel.Get(serviceType, key);
}
【问题讨论】:
-
我使用的是 Solr 6.6.3。之前这个项目是 Sitecore 6.X 版本,不时升级,现在它是 Sitecore 8.2。