【发布时间】:2014-06-19 06:08:54
【问题描述】:
我正在尝试在我的 MVC - Sitecore - 7.1 中的 v4.0.30319 项目中使用 Glass Mapper。
以下是我安装的 Glass Mapper 版本
- 玻璃映射器版本 - 3.0.10.23
- Glass.Mapper.Sc 版本 - 3.2.0.39
- Glass.Mapper.Sc.Mvc 版本 - 3.2.0.34
当我从 nuget 安装 Glass mapper Mvc 时,它在 App_Config -> 包含文件夹中添加了一个名为 (Glass.Mapper.Sc.Mvc) 的配置文件
文件内容如下
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<settings></settings>
<pipelines>
<mvc.getModel>
<processor type="Glass.Mapper.Sc.Pipelines.Response.GetModel, Glass.Mapper.Sc"/>
</mvc.getModel>
</pipelines>
</sitecore>
</configuration>
现在当我运行我的网站时,它给了我以下错误(运行上述配置中提到的管道时)
无法解析类型名称: Glass.Mapper.Sc.Pipelines.Response.GetModel、Glass.Mapper.Sc(方法: Sitecore.Configuration.Factory.CreateType(XmlNode configNode, String[] 参数,布尔断言))
但是引用已经存在了?
我是否缺少任何步骤?有人可以帮忙吗。
【问题讨论】:
标签: asp.net-mvc-4 sitecore sitecore7 glass-mapper sitecore7.1