未能加载文件或程序集“Newtonsoft.Json, Version=4.5.0.0, xxx”或它的某一个依赖项

来源:互联网 发布:企业信用数据库 编辑:程序博客网 时间:2024/05/17 23:53

错误如下:


如果发现程序集中没有引用该dll,可以尝试以下解决办法:在配置中加入程序集配置

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


0 0
原创粉丝点击