在ReflectionUtil中找不到构造函数.CreateObject: Sitecore.Marketing.Tax

本文关键字:Sitecore Marketing Tax CreateObject 构造函数 ReflectionUtil 找不到 | 更新日期: 2023-09-27 18:17:14

最近拆分了sitecore 8.2 CD环境的配置,但是它抛出了如下所示的异常,

6956 15:13:34 WARN  Could not find constructor in ReflectionUtil.CreateObject: Sitecore.Marketing.Taxonomy.CampaignGroupTaxonomyManager. The constructor parameters may not match or it may be an abstract class. Parameter info: Count: 4. Parameter types: Sitecore.Marketing.Taxonomy.Data.ItemDb.ItemTaxonomyRepository, Sitecore.Marketing.Taxonomy.Mapping.TaxonomyTypeMapper, System.String, Sitecore.Marketing.Taxonomy.TaxonomyCache
6956 15:13:34 ERROR Error loading hook: <hook type="Sitecore.Marketing.Taxonomy.Hooks.Initializer, Sitecore.Marketing.Taxonomy" patch:source="Sitecore.Analytics.MarketingTaxonomy.config" xmlns:patch="http://www.sitecore.net/xmlconfig/" />
Exception: Sitecore.Exceptions.ConfigurationException
Message: Could not create instance of type: Sitecore.Marketing.Taxonomy.CampaignGroupTaxonomyManager. No matching constructor was found.
Source: Sitecore.Kernel
   at Sitecore.Configuration.DefaultFactory.CreateFromTypeName(XmlNode configNode, String[] parameters, Boolean assert)
   at Sitecore.Configuration.DefaultFactory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper)
   at Sitecore.Configuration.DefaultFactory.CreateObject(XmlNode configNode, Boolean assert)
   at Sitecore.Configuration.DefaultFactory.CreateObject[T](XmlNode configNode)
   at Sitecore.Marketing.Taxonomy.TaxonomyManagerProvider..ctor()
   at Sitecore.Marketing.Taxonomy.Hooks.Initializer.Initialize()
   at Sitecore.Events.Hooks.HookManager.LoadAll()

在ReflectionUtil中找不到构造函数.CreateObject: Sitecore.Marketing.Tax

设法通过删除Sitecore.Analytics.MarketingTaxonomy.config作为8.2来解决问题,已重命名config

看起来你的bin文件夹中没有Sitecore.Marketing.Taxonomy.dll

仔细检查是否存在,如果没有,从Sitecore zip中复制。