FineUI 官方论坛

标题: 未能加载文件或程序集“Newtonsoft.Json,Version=4.5.0.0 问题? [打印本页]

作者: lixj_fineui    时间: 2014-9-19 11:51
标题: 未能加载文件或程序集“Newtonsoft.Json,Version=4.5.0.0 问题?


之前都是好好的,某一次添加了新页面之后,编译就出现了这个错误。
.net framework版本是4.0,项目引用的fineui和newtonsoft.json是4.1.3空项目里面的。

作者: xxdddail    时间: 2014-9-19 12:09
是否有引用到这一部分的Newtonsoft.Json?
作者: sanshi    时间: 2014-9-19 15:36
Newtonsoft.Json下载最新的 v6.x,重新编译项目
作者: lixj_fineui    时间: 2014-9-29 15:00
sanshi 发表于 2014-9-19 15:36
Newtonsoft.Json下载最新的 v6.x,重新编译项目

最后同事帮忙在配置文件里面添加了一些东西,好像是版本引用问题
<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>





欢迎光临 FineUI 官方论坛 (https://www.fineui.com/BBS/) Powered by Discuz! X3.4