Sitecore 字段映射配置错误
Sitecore Fieldmap Configuration Error
我在安装适用于 8.1 的 Sitecore SOLR 后收到以下错误。将所有 lucene 配置更改为禁用,并将 solr 配置更改为启用后,然后将其添加到 Global.asax
public void Application_Start()
{
this.Container = new WindsorContainer();
var startup = new WindsorSolrStartUp(this.Container);
startup.Initialize();
}
当我在上面添加这些行时,我收到了这个错误:
Could not find property 'fieldMap' on object of type: System.String
[InvalidOperationException: Could not find property 'fieldMap' on
object of type: System.String]
Sitecore.Configuration.Factory.AssignProperties(Object obj, Object[]
properties) +2402
Sitecore.Configuration.Factory.AssignProperties(XmlNode configNode,
String[] parameters, Object obj, Boolean assert, Boolean deferred,
IFactoryHelper helper) +643
Sitecore.Configuration.Factory.CreateObject(XmlNode configNode,
String[] parameters, Boolean assert, IFactoryHelper helper) +275
Sitecore.Configuration.Factory.CreateObject(String configPath,
String[] parameters, Boolean assert) +579
Sitecore.Configuration.Factory.CreateFromReference(XmlNode configNode,
String[] parameters, Boolean assert) +137
Sitecore.Configuration.Factory.CreateObject(XmlNode configNode,
String[] parameters, Boolean assert, IFactoryHelper helper) +109
Sitecore.Configuration.Factory.GetInnerObject(XmlNode paramNode,
String[] parameters, Boolean assert) +120
Sitecore.Configuration.Factory.AssignProperties(XmlNode configNode,
String[] parameters, Object obj, Boolean assert, Boolean deferred,
IFactoryHelper helper) +552
Sitecore.Configuration.Factory.CreateObject(XmlNode configNode,
String[] parameters, Boolean assert, IFactoryHelper helper) +275
Sitecore.Configuration.Factory.GetInnerObject(XmlNode paramNode,
String[] parameters, Boolean assert) +1013
Sitecore.Configuration.Factory.AssignProperties(XmlNode configNode,
String[] parameters, Object obj, Boolean assert, Boolean deferred,
IFactoryHelper helper) +552
Sitecore.Configuration.Factory.CreateObject(XmlNode configNode,
String[] parameters, Boolean assert, IFactoryHelper helper) +275
Sitecore.Configuration.Factory.CreateObject(String configPath,
String[] parameters, Boolean assert) +579
Sitecore.ContentSearch.ContentSearchManager.get_SearchConfiguration()
+266 Sitecore.ContentSearch.SolrProvider.SolrContentSearchManager.get_Cores()
+92 Sitecore.ContentSearch.SolrProvider.CastleWindsorIntegration.WindsorSolrStartUp.Initialize()
+44
有谁知道为什么会发生这种情况?我尝试从新的 8.1 替换配置文件,但仍然没有成功。
谢谢!
您无需在 Global.asax 中添加任何代码,只需确保您的 Global.asax 仅在 header 中具有以下标记:
<%@Application Language='C#' Inherits="Sitecore.ContentSearch.SolrProvider.CastleWindsorIntegration.WindsorApplication" %>
我发现在一个文件夹中我为 Lucene 遗漏了一个 .disabled。这样做之后,它起作用了。糟糕!
我在安装适用于 8.1 的 Sitecore SOLR 后收到以下错误。将所有 lucene 配置更改为禁用,并将 solr 配置更改为启用后,然后将其添加到 Global.asax
public void Application_Start()
{
this.Container = new WindsorContainer();
var startup = new WindsorSolrStartUp(this.Container);
startup.Initialize();
}
当我在上面添加这些行时,我收到了这个错误:
Could not find property 'fieldMap' on object of type: System.String [InvalidOperationException: Could not find property 'fieldMap' on object of type: System.String]
Sitecore.Configuration.Factory.AssignProperties(Object obj, Object[] properties) +2402
Sitecore.Configuration.Factory.AssignProperties(XmlNode configNode, String[] parameters, Object obj, Boolean assert, Boolean deferred, IFactoryHelper helper) +643
Sitecore.Configuration.Factory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper) +275
Sitecore.Configuration.Factory.CreateObject(String configPath, String[] parameters, Boolean assert) +579
Sitecore.Configuration.Factory.CreateFromReference(XmlNode configNode, String[] parameters, Boolean assert) +137
Sitecore.Configuration.Factory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper) +109
Sitecore.Configuration.Factory.GetInnerObject(XmlNode paramNode, String[] parameters, Boolean assert) +120
Sitecore.Configuration.Factory.AssignProperties(XmlNode configNode, String[] parameters, Object obj, Boolean assert, Boolean deferred, IFactoryHelper helper) +552
Sitecore.Configuration.Factory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper) +275
Sitecore.Configuration.Factory.GetInnerObject(XmlNode paramNode, String[] parameters, Boolean assert) +1013
Sitecore.Configuration.Factory.AssignProperties(XmlNode configNode, String[] parameters, Object obj, Boolean assert, Boolean deferred, IFactoryHelper helper) +552
Sitecore.Configuration.Factory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper) +275
Sitecore.Configuration.Factory.CreateObject(String configPath, String[] parameters, Boolean assert) +579
Sitecore.ContentSearch.ContentSearchManager.get_SearchConfiguration() +266 Sitecore.ContentSearch.SolrProvider.SolrContentSearchManager.get_Cores() +92 Sitecore.ContentSearch.SolrProvider.CastleWindsorIntegration.WindsorSolrStartUp.Initialize() +44
有谁知道为什么会发生这种情况?我尝试从新的 8.1 替换配置文件,但仍然没有成功。
谢谢!
您无需在 Global.asax 中添加任何代码,只需确保您的 Global.asax 仅在 header 中具有以下标记:
<%@Application Language='C#' Inherits="Sitecore.ContentSearch.SolrProvider.CastleWindsorIntegration.WindsorApplication" %>
我发现在一个文件夹中我为 Lucene 遗漏了一个 .disabled。这样做之后,它起作用了。糟糕!