在部署到iis的时候会出现这个状况。

解决:下载安装这个补丁

http://support.microsoft.com/kb/2468871

http://www.microsoft.com/zh-cn/download/confirmation.aspx?id=3556

http://download.microsoft.com/download/2/B/F/2BF4D7D1-E781-4EE0-9E4F-FDD44A2F8934/NDP40-KB2468871-v2-IA64.exe

参见资料:

http://bbs.csdn.net/topics/390581883?page=1#post-395817004
http://code.google.com/p/autofac/wiki/FrequentlyAskedQuestions
未能加载文件或程序集 “System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes” 或它的某一个依赖项。给定程序集名称或基本代码无效。 (异常来自 HRESULT:0x80131047) 
说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

Could not load file or assembly 'System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes' or one of its dependencies. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileLoadException: Could not load file or assembly 'System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes' or one of its dependencies. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)

Make sure your .NET framework is patched. Microsoft released patches to .NET to allow Portable Class Libraries to properly find the appropriate runtime (KB2468871). If you are seeing the above exception (or something like it), it means you're missing the latest .NET framework patches.

最新文章

  1. LOD
  2. boost解析json(2)
  3. 使用mybatis执行oracle存储过程
  4. 递归神经网络之理解长短期记忆网络(LSTM NetWorks)(转载)
  5. Javascript检测浏览器对CSS属性的支持 /* supports */
  6. python之json学习
  7. Linux系统的/proc目录
  8. 快速排序时间复杂度为O(n×log(n))的证明
  9. 通过wget工具下载指定文件中的URLs对应的资源并保存到指定的本地目录中去并进行文件完整性与可靠性校验
  10. python的sorted
  11. getter unddfined
  12. 微信小程序API 登录-wx.login(OBJECT) + 获取微信用户唯一标识openid | 小程序
  13. 如何用Caffe训练自己的网络-探索与试验
  14. 软件工程项目之摄影App(第二次冲刺)
  15. Maven install报MojoFailureException
  16. 纯css3无缝滚动
  17. .NetCore 使用AutoMapper
  18. 20145333茹翔 Exp5 MS11_050
  19. (转)亿级Web系统搭建——单机到分布式集群
  20. UNITY 复制对象后局部坐标和世界坐标的变化问题

热门文章

  1. Leetcode 299 Bulls and Cows 字符串处理 统计
  2. Spring之事件发布系统
  3. time
  4. liunx 套接字编程(Linux_C++)
  5. 构建自己的NSZombie
  6. IPv6 app适配
  7. Red Hat dhclient
  8. 配置新系统(Win7 x64)
  9. Activity跳转时生命周期跟踪
  10. [论文笔记] 一种Java遗留系统服务化切分和封装方法 (计算机学报, 2009)