Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/asp.net-mvc/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net mvc Glass.Mapper.Sc.ContentSearch.LuceneProvider.GlassLuceneIndex。找不到匹配的构造函数_Asp.net Mvc_Lucene_Sitecore_Glass Mapper - Fatal编程技术网

Asp.net mvc Glass.Mapper.Sc.ContentSearch.LuceneProvider.GlassLuceneIndex。找不到匹配的构造函数

Asp.net mvc Glass.Mapper.Sc.ContentSearch.LuceneProvider.GlassLuceneIndex。找不到匹配的构造函数,asp.net-mvc,lucene,sitecore,glass-mapper,Asp.net Mvc,Lucene,Sitecore,Glass Mapper,我刚刚升级了我的Sitecore 7.2实例,以使用最新的Glass Mapper SC Nuget软件包3.5.2.0。我注意到,当我尝试重建索引时,Sitecore现在抛出了一个错误: 无法创建以下类型的实例:Glass.Mapper.Sc.ContentSearch.LuceneProvider.GlassLuceneIndex。找不到匹配的构造函数 还有其他人看到这个问题吗?最后,我使用NuGet package manager从Visual Studio项目中删除了Glass Mapp

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

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


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

最后,我使用NuGet package manager从Visual Studio项目中删除了Glass Mapper,并将Glass Mapper添加到了中。我的错误消失了。

这可能是web activator的问题

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

在类文件顶部添加此行

您是否也添加了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 package Glass.Mapper.Sc.ContentSearch.LucenProvider 3.5.2.0