首页 > Web开发 > 详细

未能加载文件或程序集Newtonsoft.Json, Version=4.5.0.0

时间:2017-01-12 02:54:51      阅读:227      评论:0      收藏:0      [点我收藏+]

1.打开 程序管理器控制台  输入 PM> install-package newtonsoft.json 

2.查看bin文件中是否有 newtonsoft.json.dll文件

3.在Web.config  中添加

<runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>

5.重新编译后运行

未能加载文件或程序集Newtonsoft.Json, Version=4.5.0.0

原文:http://www.cnblogs.com/hvkcode/p/6274117.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!