版本不兼容问题(未找到程序集)

 

 

--找到工程下的Web.config文件,放在</configuration>这个包起来,进行强转

 

 

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

 

 

 

原文地址:https://www.cnblogs.com/yyldh/p/15638352.html