英文:
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.
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论