【问题标题】:Glass.Mapper.Sc.ContentSearch.LuceneProvider.GlassLuceneIndex. No matching constructor was foundGlass.Mapper.Sc.ContentSearch.LuceneProvider.GlassLuceneIndex。没有找到匹配的构造函数
【发布时间】:2015-03-24 01:11:34
【问题描述】:

我刚刚升级了我的 Sitecore 7.2 实例以使用最新的 Glass Mapper SC Nuget 包 (3.5.2.0)。我注意到,当我尝试重建索引时,Sitecore 现在会抛出错误:

无法创建以下类型的实例:Glass.Mapper.Sc.ContentSearch.LuceneProvider.GlassLuceneIndex。没有找到匹配的构造函数。

还有其他人看到这个问题吗?

【问题讨论】:

  • 您是否还添加了 Glass.Mapper.Sc.CastleWindsor 和 Glass.Mapper.Sc.Mvc 包?
  • 是的,Glass.Mapper.Sc.CastleWindsor (3.3.0.25) 和 Glass.Mapper.Sc.Mvc (3.5.2.0) 都已更新/添加到项目中,包括 nuget 包 Glass.Mapper。 Sc.ContentSearch.LuceneProvider (3.5.2.0)

标签: asp.net-mvc lucene sitecore glass-mapper


【解决方案1】:

最后,我使用 NuGet 包管理器从 Visual Studio 项目中删除了 Glass Mapper,并重新添加了 Glass Mapper。我的错误消失了。

【讨论】:

    【解决方案2】:

    这可能是网络激活器问题

    [assembly: WebActivatorEx.PostApplicationStartMethod(typeof(XYZ.Web.App_Start.GlassMapperSC), "Start")]
    

    在你的类文件的顶部添加这一行

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-01-14
      • 1970-01-01
      • 1970-01-01
      • 2022-01-15
      • 2014-11-03
      • 2016-01-26
      • 2016-06-17
      • 2015-09-21
      相关资源
      最近更新 更多