TFS & Visual Studio ALM – by Neno Loje

(formerly Team System, VSTS)

nuget.exe fails with Response: Invalid URI: The hostname could not be parsed.

May 20th, 2015 · 1 Comment · NuGet

The Problem

  • You are using a custom NuGet feed
  • when running nuget.exe you receive the following error message:

Response: Invalid URI: The hostname could not be parsed.

The Solution

Double-check the URL you are using (for example, try opening it on a browser). Typically, the URL should end with /nuget (for some servers like ProGet with /nuget/<feedname>).

Incorrect example:
http://nuget.<server>.org

Correct example:
http://nuget.<server>.org/nuget

(Solution based on: http://nuget.codeplex.com/discussions/361846/)

Tags:

One Comment so far ↓

Leave a Comment