【发布时间】: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