Reputation: 1187
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).
Upvotes: 1
Views: 128
Reputation: 151588
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.
Upvotes: 1