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>

 

posted @ 2017-05-29 16:16  欣欣点灯  阅读(2372)  评论(0编辑  收藏  举报