问题:netonsoft.json.dll存在多个版本,项目中容易出现冲突
解决:web.config中将低版本dll重定向至最新版,增加如下配置:
< runtime>
< assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
< dependentAssembly>
< assemblyIdentity name="newtonsoft.json.dll" culture="neutral" publicKeyToken="16816888888"/>
< bindingRedirect oldVersion="0.0.0.0-11.0.0.0" newVersion="12.0.0.0" />
< /dependentAssembly>
< /assemblyBinding>
< /runtime>