【问题标题】:System.Web.Http problem affecting communicationSystem.Web.Http问题影响通信
【发布时间】:2020-08-03 12:23:41
【问题描述】:

"System.Net.Http" dll 似乎有问题。 我不断收到与此相关的各种错误: 在尝试恢复 nuget 包时(框架似乎无法连接到 nuget 索引:

Unable to load the service index for source https://api.nuget.org/v3/index.json.

即使在尝试通过 Visual Studio 2019 社区登录 Microsoft 帐户时:

we could not refresh the credentials for the account ...
Could not load file or assembly System.Web.Http, Version=5.2.2.0

这似乎是系统问题。我应该在哪里查看\在系统级别找到这个 dll? 请帮忙

【问题讨论】:

    标签: visual-studio-2019 nuget-package system.net


    【解决方案1】:

    问题是 GAC 中缺少 dll: 为了到达 GAC,请在运行中将程序集作为系统变量键入。 丢失的 dll 应该位于 GAC_MSIL 中的 System.Net.Http 文件夹中(取决于微软操作系统)。 我从另一个来源拿了它并把它放在那里

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-07-13
      • 2013-05-21
      • 2014-08-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多