Newtonsoft.Json 版本不一致导致错误

可以在配置文件添加这部分,其他版本的不一致,也可使用这种方式解决.

  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">      
      <dependentAssembly>
        <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-9.0.0.0" newVersion="9.0.0.0" />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
原文地址:https://www.cnblogs.com/CoreXin/p/6918230.html