Home: Nuget isn't working for me on VS.

Created on 5 Aug 2016  路  7Comments  路  Source: NuGet/Home

When opening the package manager in VS2015;

[nuget.org] Unable to load the service index for source https://www.nuget.org/api/v2/.
An error occurred while sending the request.
The remote server returned an error: (400) Bad Request.

I can't install packages like this.

Duplicate

Most helpful comment

Figure it out on my own. Deleted the %AppData%\NuGet\nuget.config and restarted VS2015

All 7 comments

try adding the v3 source: https://api.nuget.org/v3/index.json

Like duplicate of #2880 .
please confirm or deny.

I don't believe it's a duplicate. The error is different. Also there is no http_proxy variable on my machine.

V3 source is the same

[nuget V3] Unable to load the service index for source https://api.nuget.org/v3/index.json.
An error occurred while sending the request.
The remote server returned an error: (400) Bad Request.

Figure it out on my own. Deleted the %AppData%\NuGet\nuget.config and restarted VS2015

@alexzxz very strange, your nuget.config may have contained proxy settings that were causing your requests to fail.

I did the same as @Wua4 and got a new NuGet.Config. It had these lines removed:

<packageRestore>
  <add key="enabled" value="True" />
  <add key="automatic" value="True" />
</packageRestore>
<bindingRedirects>
  <add key="skip" value="False" />
</bindingRedirects>
<packageManagement>
  <add key="format" value="1" />
  <add key="disabled" value="False" />
</packageManagement>

Now it works fine!

Was this page helpful?
0 / 5 - 0 ratings