mark下坑爹的配置
1.删除bin目录下的Newtonsoft.Json.dll2.V4版本dll 复制到Bin/Newtonsoft.Json.4/Newtonsoft.Json.dll V11版本dll 复制到Bin/Newtonsoft.Json.11/Newtonsoft.Json.dll3.web.config 做如下配置<dependentAssembly> <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="" /> <codeBase version="4.0.0.0" href="Bin/Newtonsoft.Json.4/Newtonsoft.Json.dll" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" /> <codeBase version="11.0.0.0" href="Bin/Newtonsoft.Json.11/Newtonsoft.Json.dll" /> <bindingRedirect oldVersion="0.0.0.0-11.0.0.0" newVersion="11.0.0.0" /> </dependentAssembly>
转载于:https://www.cnblogs.com/andyaicao/p/9935111.html
相关资源:Newtonsoft.Json各个平台版本(.NET20/30/40/45)