【问题标题】:Could not load file or assembly Newtonsoft.json Version 6.0.0.0无法加载文件或程序集 Newtonsoft.json 版本 6.0.0.0
【发布时间】:2018-05-30 15:22:00
【问题描述】:

我正在尝试将 NewtonSoft 更新为最新添加的 11.0.1,但是当我使用 NuGet 管理器更新 Dll 时,它开始给我这个错误,我什至从所有可能存在 ASP 的 Temp 文件夹中删除了文件。 NET FrameWork,但它似乎不会消失。

  Error:
Reference.svcmap: Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)   

我还能在这里尝试做什么?

【问题讨论】:

  • 在您的web.config 文件中,是否有与Newtonsoft 相关的内容?例如。 BindingRedirects?
  • 尝试重新安装软件包。线程here 会有所帮助。
  • 好的,我会尝试重新安装它,是的,我在 Web.config 中找到了一个 BindingRedirect 它显示旧版本设置为 0-6,新版本设置为 11.0.1 但是仍然给出错误

标签: c# asp.net dll .net-assembly


【解决方案1】:

重建解决方案通常会为我修复此错误

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-11-15
    • 2017-03-13
    • 2015-12-18
    • 2023-01-20
    • 2016-06-05
    • 2011-09-04
    • 2015-12-23
    • 2020-10-27
    相关资源
    最近更新 更多