1、在asp.net Boilerplate项目中,Abp.0.12.0.2,.net framework4.5.2。下载后添加了webApi的helpPage功能,调试出现错误。

dubug : at Areas\HelpPage\Views\Help\DisplayTemplatesHelpPageApiModel.cshtml Samples error:
D:\ project \MyWeb\MyWeb.Web\Areas\HelpPage\Views\Help\DisplayTemplates\Samples.cshtml (6): error CS0012: Type "System.Collections.Generic.Dictionary'2 <T0,T1>" defined in the Assembly that is not referenced. You must add the assemblies "System.Collections, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" reference.

解决方法:在 Web.config, node <system.web> <assemblies>, adding
<add assembly="System.Collections, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />

解决:http://www.lyalin.com/2014/04/25/the-type-system-object-is-defined-in-an-assembly-that-is-not-reference-mvc-pcl-issue/

2、还是1的项目,debug时候正常,但发布到iis时候出现错误:

编译错误

说明: 在编译向该请求提供服务所需资源的过程中出现错误。请检查下列特定错误详细信息并适当地修改源代码。

编译器错误消息: CS0012: 类型“System.Object”在未被引用的程序集中定义。必须添加对程序集“System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”的引用。

解决方法:在web.config中,node <system.web> <assemblies>, adding

<add assembly="System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />

效果:

<system.web>
<!--<trust level="Full" />-->
<globalization culture="auto" uiCulture="auto"/>
<compilation debug="true" targetFramework="4.5.2">
<assemblies>
<add assembly="System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Collections, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</assemblies>
</compilation> <httpRuntime/>
<customErrors mode="Off"/>
<pages controlRenderingCompatibilityVersion="4.0"/>
</system.web>

最新文章

  1. Linux 下进程的内存空间分配
  2. 【BZOJ】3676: [Apio2014]回文串
  3. 转 状态压缩DP
  4. rsync同步Nginx日志遇到问题总结
  5. G面经prepare: Pattern Match
  6. 由于 add 运算符中“Chinese_PRC_CI_AS”和“Chinese_PRC_CS_AS_WS”之间的排序规则冲突
  7. 如何在后台动态生成ASPxCheckBoxList标签并循环(数据调用存储过程)
  8. 自定义View(9)关于onLayout
  9. HDU3068 最长回文 Manacher算法
  10. tomcat 配置https (单向认证)
  11. [HNOI2012] 矿场搭建
  12. CentOS 6.5 64位,调整分区大小
  13. web前端上传图片的几种方法
  14. Leetcode题解(二)
  15. Java进阶(九)正则表达式
  16. js里添加的标签
  17. 生命游戏&amp;一维细胞自动机 笔记
  18. SpringJDBC——jdbcTemplate模板
  19. Session Alerts
  20. 微信小程序:冒泡事件及其阻止

热门文章

  1. pip安装tensorflow出错怎么办
  2. UE4 Sequencer的事件调用
  3. 深度学习(六十七)metal forge深度学习库使用
  4. OPEN(SAP) UI5 学习入门系列之一:扫盲与热身(上)
  5. 《PyQt5 快速开发与实战》 第九章代码Bug修正 DataGrid.py 最后一页下翻页 仍可点击的错误
  6. 【解题报告】Codeforces Round #301 (Div. 2) 之ABCD
  7. IIS反向代理/Rewrite/https卸载配置
  8. mongodb查询(转载)
  9. 每天一个linux命令(性能、优化):【转载】free命令
  10. VSCode插件开发