Newtonsoft.Json3.5.0.0版本升级的问题,请大家帮忙看看
之前的一个项目,用VS2010开发,其中使用到了Coolite Tools组件,引用了Newtonsoft.Json3.5.0.0版本。现在的一个功能使用到了百度的Ueditor组件,其中就需要引用Newtonsoft.Json6.0.0.0版本。但是现在两个版本存在冲突了,运行时候会出现以下问题:
未能加载文件或程序集“Newtonsoft.Json, Version=3.5.0.0, Culture=neutral, PublicKeyToken=9ad232b50c3e6444”或它的某一个依赖项。找到的程序集清单定义与程序集引用不匹配。
在网上看了在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>