无法在Visual Studio 2017中创建控制器。

huangapple go评论85阅读模式
英文:

Unable to create Controller in Visual Studio 2017

问题

我正在尝试使用Visual Studio和Scaffolding创建一个控制器。我不确定这里有什么问题。我一直收到这个错误。我甚至修复了整个应用程序,但没有运气。

更多细节,

其他NuGet包也出现了这个问题。

无法从'https://api.nuget.org/v3-flatcontainer/dotnet-reportgenerator-cli/4.0.2/dotnet-reportgenerator-cli.4.0.2.nupkg'下载包'dotnet-reportgenerator-cli.4.0.2'。
响应状态码不表示成功:403(禁止)。

英文:

I am trying to create a controller in Visual Studio using Scaffolding.
I am not sure what is wrong here. I keep getting this error. I even repaired my entire application. No Luck.

无法在Visual Studio 2017中创建控制器。

More details,

Happening with other nuget Packages too.

Failed to download package 'dotnet-reportgenerator-cli.4.0.2' from 'https://api.nuget.org/v3-flatcontainer/dotnet-reportgenerator-cli/4.0.2/dotnet-reportgenerator-cli.4.0.2.nupkg'.
Response status code does not indicate success: 403 (Forbidden).

答案1

得分: 1

403表示NuGet本身或中间代理拒绝了请求。

如果是前者,问题很快应该会被NuGet本身解决,因为全球数十万开发人员依赖于它。

如果问题仍然存在,很可能是您的计算机或网络上有代理服务器阻止了请求。确保是这种情况,如果是的话,请采取必要的步骤将NuGet添加到代理白名单中。

英文:

The 403 indicates that either NuGet itself, or an intermediary is refusing the request.

If the former, the problem should be solved by NuGet itself quite soon, as hundreds of thousands of developers worldwide rely on it.

If it persist, chances are there's a proxy server on your machine or network blocking the request. Ensure that is the case, and if so, take the necessary steps to get NuGet whitelisted in that proxy.

huangapple
  • 本文由 发表于 2020年1月6日 20:57:32
  • 转载请务必保留本文链接:https://go.coder-hub.com/59612543.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定