This project is read-only.


Nuget is not working with Repository in Azure with Federated Auth


Nuget.exe is not working with Repository in Azure with Corp STS enabled. i am getting the bellow error.

Install-Package : Expected an absolute, well formed http URL without a query or fragment.
Parameter name: serviceRoot
At line:1 char:16
  • Install-Package <<<< EnterpriseLibrary.Data
    • CategoryInfo : NotSpecified: (:) [Install-Package], ArgumentException
    • FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
my packaging Source :

if i remove Corp STS implementation, it is working fine. i think there is a bug in nutget.exe which is not allowing to make request to ADFS with query parameters...
Closed Jun 8, 2012 at 6:49 PM by aldion
  • when WIF not on the box : "Connection to feed '...' requires the Windows Identify Foundation runtime to be installed."
  • when WIF installed, over corpnet :
    • can list, sort, search, install packages
    • works from NuGet, nuget.exe
  • note: once an error occurs (e.g. no corpnet) the state is cached and I needed to restart VS to refresh
  • note: still works fine after NuGet is left open on the feed for 30 min, 10 hours.
  • filed #2299 nuget.exe doesn't work well with repository in Azure with Federated Auth over VPN
  • note: perf looks bad will investigate separately.
  • when no access it failed with error : The HTTP request was forbidden with client authentication scheme 'Negotiate'.


JeffHandley wrote Apr 11, 2012 at 9:54 PM

Pranav, in this scenario the feed source is behind federated auth in Azure and NuGet is not able to get past the authentication. I can help you get to a repro environment, so please sync up with me.

pranavkm wrote May 16, 2012 at 6:05 PM

Fixed in changeset f5bae81a3e8f

mlinnell wrote Jan 3, 2014 at 4:34 PM

@pranavkm this is listed as fixed/closed, and by change set f5bae81a3e8f, but I get the same error in our federated auth environment. Same situation - if I turn off federated auth, nuget works. If I turn on federated auth, I can browse the feed manually in my browser. However, when trying to install a package I get the error:

WARNING: Expected an absolute, well formed http URL without a query or fragment.
Parameter name: serviceRoot

I am on nuget 2.7.41115.310.

Is there a configuration in my nuget.config I need to support this?

pranavkm wrote Jan 3, 2014 at 5:30 PM

@mlinnell, there's a couple of gallery changes to make this work. The last I checked, the gallery changes were sitting in a private fork. I think @anurse was working on integrating the changes back in although I'm not sure what's happening with that effort.