Could not load file or assembly 'System.Core, Version=2.0.5.0 和autofac衝突的問題

原文地址爲:Could not load file or assembly 'System.Core, Version=2.0.5.0 和autofac衝突的問題

在部署到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.
 

 


轉載請註明本文地址:Could not load file or assembly 'System.Core, Version=2.0.5.0 和autofac衝突的問題
發佈了0 篇原創文章 · 獲贊 104 · 訪問量 78萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章