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

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/)

Leave a Reply

Your email address will not be published. Required fields are marked *


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>