Could not load file or assembly 'Newtonsoft.Json, Version=3.5.0.0,


Could not load file or assembly 'Newtonsoft.Json, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b9a188c8922137c6' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

http://stackoverflow.com/questions/3374279/help-me-for-json-unknown-problem

That assembly either needs to be placed in your applications root directory or in your GAC.

ExtAspNet依賴於Newtonsoft.Json.dll
ExtAspNet.dll只有一個For Net2.0的版本,無論你的項目是2.0、3.5、4.0,都只需要引用同一個ExtAspNet.dll即可。
而Newtonsoft.Json.dll為在每個DotNet下都有自己的版本,比如你的項目是基於.Net 2.0的,就要引用json.net\Net20\Newtonsoft.Json.dll,如果你的項目是基於.Net 4.0的,就要引用json.net\Net40\Newtonsoft.Json.dl

程序集需要放到項目根目錄下面 如圖:


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM