Home: Dotnet restore with VSTS feed fails

Created on 3 Aug 2016  路  10Comments  路  Source: NuGet/Home

Dupe of https://github.com/dotnet/cli/issues/3977

Steps to reproduce

  • Have at least two projects (one classic .net, one .net core)
  • Let both depend on a package on a private VSTS package feed
  • Use VSTS build to restore using nuget
  • Use VSTS to launch dotnet command line (dotnet restore --verbosity Information --configfile NuGet.config )

    Expected behavior

Both restores (classic and dotnet) work fine

Actual behavior

nuget restore goes fine
dotnet restore (sometimes) fails on the VSTS feed with:

error: Unable to load the service index for source https://xxx.pkgs.visualstudio.com/DefaultCollection/_packaging/yyy/nuget/v3/index.json.
error:   An error occurred while sending the request.
error:   The parameter is incorrect

Environment data

Please keep in mind this is on VSTS hosted servers.

Product Information:
 Version:            1.0.0-preview2-003121
 Commit SHA-1 hash:  1e9d529bc5
Runtime Environment:
 OS Name:     Windows
 OS Version:  6.3.9600
 OS Platform: Windows
 RID:         win81-x64

Locally I can never reproduce with dotnet restore, unsure what parameter would be incorrect. For reference, the NuGet.config used:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageRestore>
    <add key="enabled" value="True" />
    <add key="automatic" value="True" />
  </packageRestore>
  <packageSources>
      <clear />
    <add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
    <add key="yyy" value="https://xxx.pkgs.visualstudio.com/DefaultCollection/_packaging/yyy/nuget/v3/index.json" />
  </packageSources>
  <activePackageSource>
    <add key="All" value="(Aggregate source)" />
  </activePackageSource>
</configuration>
Authentication Xplat NotRepro

Most helpful comment

log  : Restoring packages for D:\z\Solution\Project.Test\project.json...
error: Unable to load the service index for source https://company.pkgs.visualstudio.com/_packaging/feedname/nuget/v3/index.json.
error:   An error occurred while sending the request.
error:   The parameter is incorrect

Misleading error message. The problem is lacking authentication.
It DOES work for .NET v4.x nuget package restores - it does NOT work for .NET CORE solutions.

I fear while fiddling around with NuGet for .NET CORE I break NuGet for .NET v4.x again. It was a mess to get that going with authentication in the first place.
At least to me NuGet is a really bad user experience. Still quite obviously you see it was never designed to work with authentication. I wonder when this is properly fixed. Tooling is supposed to help not to stop you from working :(

All 10 comments

I'm having the same issue.

Running

dotnet restore --configfile Nuget.config --verbosity Debug

produced the logs below:

 2016-08-05T16:59:07.4735956Z trace: Restoring packages for .NETStandard,Version=v1.6...
2016-08-05T16:59:08.5221352Z info :   GET https://api.nuget.org/v3-flatcontainer/microsoft.entityframeworkcore/index.json
2016-08-05T16:59:08.6874528Z info :   OK https://api.nuget.org/v3-flatcontainer/microsoft.entityframeworkcore/index.json 175ms
2016-08-05T16:59:08.6979880Z info :   GET https://api.nuget.org/v3-flatcontainer/microsoft.entityframeworkcore/1.0.0/microsoft.entityframeworkcore.1.0.0.nupkg
2016-08-05T16:59:08.7830593Z info :   OK https://api.nuget.org/v3-flatcontainer/microsoft.entityframeworkcore/1.0.0/microsoft.entityframeworkcore.1.0.0.nupkg 85ms
2016-08-05T16:59:08.8200604Z info :   GET https://api.nuget.org/v3-flatcontainer/microsoft.extensions.caching.memory/index.json
2016-08-05T16:59:08.8220601Z info :   GET https://api.nuget.org/v3-flatcontainer/microsoft.extensions.dependencyinjection/index.json
2016-08-05T16:59:08.8220601Z info :   GET https://api.nuget.org/v3-flatcontainer/microsoft.extensions.logging/index.json
2016-08-05T16:59:08.8230600Z info :   GET https://api.nuget.org/v3-flatcontainer/remotion.linq/index.json
2016-08-05T16:59:08.8230600Z info :   GET https://api.nuget.org/v3-flatcontainer/system.interactive.async/index.json
2016-08-05T16:59:08.9110620Z info :   OK https://api.nuget.org/v3-flatcontainer/microsoft.extensions.caching.memory/index.json 91ms
2016-08-05T16:59:08.9140608Z info :   GET https://api.nuget.org/v3-flatcontainer/microsoft.extensions.caching.memory/1.0.0/microsoft.extensions.caching.memory.1.0.0.nupkg
2016-08-05T16:59:08.9527762Z info :   OK https://api.nuget.org/v3-flatcontainer/remotion.linq/index.json 131ms
2016-08-05T16:59:08.9547712Z info :   GET https://api.nuget.org/v3-flatcontainer/remotion.linq/2.1.1/remotion.linq.2.1.1.nupkg
2016-08-05T16:59:08.9649952Z info :   OK https://api.nuget.org/v3-flatcontainer/system.interactive.async/index.json 142ms
2016-08-05T16:59:08.9669970Z info :   OK https://api.nuget.org/v3-flatcontainer/microsoft.extensions.logging/index.json 145ms
2016-08-05T16:59:08.9679966Z info :   OK https://api.nuget.org/v3-flatcontainer/microsoft.extensions.dependencyinjection/index.json 146ms
2016-08-05T16:59:08.9689965Z info :   GET https://api.nuget.org/v3-flatcontainer/system.interactive.async/3.0.0/system.interactive.async.3.0.0.nupkg
2016-08-05T16:59:08.9699960Z info :   GET https://api.nuget.org/v3-flatcontainer/microsoft.extensions.dependencyinjection/1.0.0/microsoft.extensions.dependencyinjection.1.0.0.nupkg
2016-08-05T16:59:08.9709951Z info :   GET https://api.nuget.org/v3-flatcontainer/microsoft.extensions.logging/1.0.0/microsoft.extensions.logging.1.0.0.nupkg
2016-08-05T16:59:09.0021988Z info :   OK https://api.nuget.org/v3-flatcontainer/system.interactive.async/3.0.0/system.interactive.async.3.0.0.nupkg 33ms
2016-08-05T16:59:09.0211341Z info :   OK https://api.nuget.org/v3-flatcontainer/microsoft.extensions.caching.memory/1.0.0/microsoft.extensions.caching.memory.1.0.0.nupkg 106ms
2016-08-05T16:59:09.0251335Z info :   GET https://api.nuget.org/v3-flatcontainer/microsoft.extensions.dependencyinjection.abstractions/index.json
2016-08-05T16:59:09.0261330Z info :   GET https://api.nuget.org/v3-flatcontainer/microsoft.extensions.caching.abstractions/index.json
2016-08-05T16:59:09.0271323Z info :   GET https://api.nuget.org/v3-flatcontainer/microsoft.extensions.options/index.json
2016-08-05T16:59:09.0406899Z info :   OK https://api.nuget.org/v3-flatcontainer/remotion.linq/2.1.1/remotion.linq.2.1.1.nupkg 85ms
2016-08-05T16:59:09.0506898Z info :   OK https://api.nuget.org/v3-flatcontainer/microsoft.extensions.dependencyinjection/1.0.0/microsoft.extensions.dependencyinjection.1.0.0.nupkg 80ms
2016-08-05T16:59:09.0776750Z info :   OK https://api.nuget.org/v3-flatcontainer/microsoft.extensions.logging/1.0.0/microsoft.extensions.logging.1.0.0.nupkg 107ms
2016-08-05T16:59:09.0806841Z info :   GET https://api.nuget.org/v3-flatcontainer/microsoft.extensions.logging.abstractions/index.json
2016-08-05T16:59:09.1364117Z info :   OK https://api.nuget.org/v3-flatcontainer/microsoft.extensions.caching.abstractions/index.json 110ms
2016-08-05T16:59:09.1404123Z info :   GET https://api.nuget.org/v3-flatcontainer/microsoft.extensions.caching.abstractions/1.0.0/microsoft.extensions.caching.abstractions.1.0.0.nupkg
2016-08-05T16:59:09.1544761Z info :   OK https://api.nuget.org/v3-flatcontainer/microsoft.extensions.dependencyinjection.abstractions/index.json 129ms
2016-08-05T16:59:09.1564757Z info :   GET https://api.nuget.org/v3-flatcontainer/microsoft.extensions.dependencyinjection.abstractions/1.0.0/microsoft.extensions.dependencyinjection.abstractions.1.0.0.nupkg
2016-08-05T16:59:09.1594760Z info :   OK https://api.nuget.org/v3-flatcontainer/microsoft.extensions.options/index.json 132ms
2016-08-05T16:59:09.1614756Z info :   GET https://api.nuget.org/v3-flatcontainer/microsoft.extensions.options/1.0.0/microsoft.extensions.options.1.0.0.nupkg
2016-08-05T16:59:09.1704729Z info :   OK https://api.nuget.org/v3-flatcontainer/microsoft.extensions.logging.abstractions/index.json 84ms
2016-08-05T16:59:09.1714756Z info :   GET https://api.nuget.org/v3-flatcontainer/microsoft.extensions.logging.abstractions/1.0.0/microsoft.extensions.logging.abstractions.1.0.0.nupkg
2016-08-05T16:59:09.1760815Z info :   OK https://api.nuget.org/v3-flatcontainer/microsoft.extensions.options/1.0.0/microsoft.extensions.options.1.0.0.nupkg 14ms
2016-08-05T16:59:09.1790801Z info :   GET https://api.nuget.org/v3-flatcontainer/microsoft.extensions.primitives/index.json
2016-08-05T16:59:09.2311346Z info :   OK https://api.nuget.org/v3-flatcontainer/microsoft.extensions.primitives/index.json 52ms
2016-08-05T16:59:09.2341338Z info :   GET https://api.nuget.org/v3-flatcontainer/microsoft.extensions.primitives/1.0.0/microsoft.extensions.primitives.1.0.0.nupkg
2016-08-05T16:59:09.2341338Z info :   OK https://api.nuget.org/v3-flatcontainer/microsoft.extensions.caching.abstractions/1.0.0/microsoft.extensions.caching.abstractions.1.0.0.nupkg 93ms
2016-08-05T16:59:09.2451559Z info :   OK https://api.nuget.org/v3-flatcontainer/microsoft.extensions.primitives/1.0.0/microsoft.extensions.primitives.1.0.0.nupkg 3ms
2016-08-05T16:59:09.2745284Z info :   OK https://api.nuget.org/v3-flatcontainer/microsoft.extensions.dependencyinjection.abstractions/1.0.0/microsoft.extensions.dependencyinjection.abstractions.1.0.0.nupkg 118ms
2016-08-05T16:59:09.2855252Z info :   OK https://api.nuget.org/v3-flatcontainer/microsoft.extensions.logging.abstractions/1.0.0/microsoft.extensions.logging.abstractions.1.0.0.nupkg 118ms
2016-08-05T16:59:10.3261376Z info :   GET https://api.nuget.org/v3-flatcontainer/microsoft.entityframeworkcore.sqlserver/index.json
2016-08-05T16:59:10.4205314Z info :   OK https://api.nuget.org/v3-flatcontainer/microsoft.entityframeworkcore.sqlserver/index.json 95ms
2016-08-05T16:59:10.4225306Z info :   GET https://api.nuget.org/v3-flatcontainer/microsoft.entityframeworkcore.sqlserver/1.0.0/microsoft.entityframeworkcore.sqlserver.1.0.0.nupkg
2016-08-05T16:59:10.5326182Z info :   OK https://api.nuget.org/v3-flatcontainer/microsoft.entityframeworkcore.sqlserver/1.0.0/microsoft.entityframeworkcore.sqlserver.1.0.0.nupkg 110ms
2016-08-05T16:59:10.5416183Z info :   GET https://api.nuget.org/v3-flatcontainer/system.data.sqlclient/index.json
2016-08-05T16:59:10.5426440Z info :   GET https://api.nuget.org/v3-flatcontainer/microsoft.entityframeworkcore.relational/index.json
2016-08-05T16:59:10.6426866Z info :   OK https://api.nuget.org/v3-flatcontainer/microsoft.entityframeworkcore.relational/index.json 100ms
2016-08-05T16:59:10.6446867Z info :   GET https://api.nuget.org/v3-flatcontainer/microsoft.entityframeworkcore.relational/1.0.0/microsoft.entityframeworkcore.relational.1.0.0.nupkg
2016-08-05T16:59:10.7241785Z info :   OK https://api.nuget.org/v3-flatcontainer/microsoft.entityframeworkcore.relational/1.0.0/microsoft.entityframeworkcore.relational.1.0.0.nupkg 79ms
2016-08-05T16:59:10.7411685Z info :   OK https://api.nuget.org/v3-flatcontainer/system.data.sqlclient/index.json 199ms
2016-08-05T16:59:10.7431702Z info :   GET https://api.nuget.org/v3-flatcontainer/system.data.sqlclient/4.1.0/system.data.sqlclient.4.1.0.nupkg
2016-08-05T16:59:10.7521709Z info :   GET https://api.nuget.org/v3-flatcontainer/system.data.common/index.json
2016-08-05T16:59:10.8311710Z info :   OK https://api.nuget.org/v3-flatcontainer/system.data.common/index.json 79ms
2016-08-05T16:59:10.8321719Z info :   OK https://api.nuget.org/v3-flatcontainer/system.data.sqlclient/4.1.0/system.data.sqlclient.4.1.0.nupkg 88ms
2016-08-05T16:59:10.8341706Z info :   GET https://api.nuget.org/v3-flatcontainer/system.data.common/4.1.0/system.data.common.4.1.0.nupkg
2016-08-05T16:59:10.9367070Z info :   GET https://api.nuget.org/v3-flatcontainer/runtime.native.system.data.sqlclient.sni/index.json
2016-08-05T16:59:10.9377072Z info :   GET https://api.nuget.org/v3-flatcontainer/system.io.pipes/index.json
2016-08-05T16:59:10.9447069Z info :   OK https://api.nuget.org/v3-flatcontainer/system.data.common/4.1.0/system.data.common.4.1.0.nupkg 110ms
2016-08-05T16:59:11.1195633Z info :   OK https://api.nuget.org/v3-flatcontainer/system.io.pipes/index.json 182ms
2016-08-05T16:59:11.1215636Z info :   GET https://api.nuget.org/v3-flatcontainer/system.io.pipes/4.0.0/system.io.pipes.4.0.0.nupkg
2016-08-05T16:59:11.2392507Z info :   OK https://api.nuget.org/v3-flatcontainer/system.io.pipes/4.0.0/system.io.pipes.4.0.0.nupkg 117ms
2016-08-05T16:59:11.2678674Z info :   OK https://api.nuget.org/v3-flatcontainer/runtime.native.system.data.sqlclient.sni/index.json 331ms
2016-08-05T16:59:12.6660084Z info :   GET https://api.nuget.org/v3-flatcontainer/<MYASSEMBLYNAME>/index.json
2016-08-05T16:59:12.6670099Z info :   GET https://api.nuget.org/v3-flatcontainer/runtime.native.system.data.sqlclient.sni/4.0.0/runtime.native.system.data.sqlclient.sni.4.0.0.nupkg
2016-08-05T16:59:12.7482162Z info :   OK https://api.nuget.org/v3-flatcontainer/runtime.native.system.data.sqlclient.sni/4.0.0/runtime.native.system.data.sqlclient.sni.4.0.0.nupkg 80ms
2016-08-05T16:59:12.7593401Z info :   NotFound https://api.nuget.org/v3-flatcontainer/<MYASSEMBLYNAME>/index.json 93ms
2016-08-05T16:59:13.2650823Z info :   GET https://api.nuget.org/v3-flatcontainer/runtime.win7-x64.runtime.native.system.data.sqlclient.sni/index.json
2016-08-05T16:59:13.2650823Z info :   GET https://api.nuget.org/v3-flatcontainer/runtime.win7-x86.runtime.native.system.data.sqlclient.sni/index.json
2016-08-05T16:59:13.3962163Z info :   OK https://api.nuget.org/v3-flatcontainer/runtime.win7-x86.runtime.native.system.data.sqlclient.sni/index.json 131ms
2016-08-05T16:59:13.3982147Z info :   GET https://api.nuget.org/v3-flatcontainer/runtime.win7-x86.runtime.native.system.data.sqlclient.sni/4.0.1/runtime.win7-x86.runtime.native.system.data.sqlclient.sni.4.0.1.nupkg
2016-08-05T16:59:13.4768214Z info :   OK https://api.nuget.org/v3-flatcontainer/runtime.win7-x86.runtime.native.system.data.sqlclient.sni/4.0.1/runtime.win7-x86.runtime.native.system.data.sqlclient.sni.4.0.1.nupkg 78ms
2016-08-05T16:59:13.8358377Z info :   OK https://api.nuget.org/v3-flatcontainer/runtime.win7-x64.runtime.native.system.data.sqlclient.sni/index.json 570ms
2016-08-05T16:59:13.8378393Z info :   GET https://api.nuget.org/v3-flatcontainer/runtime.win7-x64.runtime.native.system.data.sqlclient.sni/4.0.1/runtime.win7-x64.runtime.native.system.data.sqlclient.sni.4.0.1.nupkg
2016-08-05T16:59:13.9436920Z info :   OK https://api.nuget.org/v3-flatcontainer/runtime.win7-x64.runtime.native.system.data.sqlclient.sni/4.0.1/runtime.win7-x64.runtime.native.system.data.sqlclient.sni.4.0.1.nupkg 106ms
2016-08-05T16:59:14.8772039Z error: Unable to load the service index for source https://***.pkgs.visualstudio.com/_packaging/***/nuget/v3/index.json.
2016-08-05T16:59:14.8782043Z error:   An error occurred while sending the request.
2016-08-05T16:59:14.8782043Z error:   The parameter is incorrect
2016-08-05T16:59:15.5647791Z trace: System.AggregateException: One or more errors occurred. (Unable to load the service index for source https://***.pkgs.visualstudio.com/_packaging/***/nuget/v3/index.json.) ---> NuGet.Protocol.Core.Types.FatalProtocolException: Unable to load the service index for source https://***.pkgs.visualstudio.com/_packaging/***/nuget/v3/index.json. ---> System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.Http.WinHttpException: The parameter is incorrect
2016-08-05T16:59:15.5657792Z trace:    at System.Net.Http.WinHttpAuthHelper.SetWinHttpCredential(SafeWinHttpHandle requestHandle, ICredentials credentials, Uri uri, UInt32 authScheme, UInt32 authTarget)
2016-08-05T16:59:15.5657792Z trace:    at System.Net.Http.WinHttpAuthHelper.CheckResponseForAuthentication(WinHttpRequestState state, UInt32& proxyAuthScheme, UInt32& serverAuthScheme)
2016-08-05T16:59:15.5667814Z trace:    at System.Net.Http.WinHttpHandler.<StartRequest>d__101.MoveNext()
2016-08-05T16:59:15.5667814Z trace:    --- End of inner exception stack trace ---
2016-08-05T16:59:15.5677870Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.5677870Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.5687805Z trace:    at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
2016-08-05T16:59:15.5687805Z trace:    at System.Net.Http.HttpClient.<FinishSendAsync>d__58.MoveNext()
2016-08-05T16:59:15.5687805Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.5697812Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.5697812Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.5707786Z trace:    at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
2016-08-05T16:59:15.5707786Z trace:    at NuGet.Protocol.TimeoutUtility.<StartWithTimeout>d__0`1.MoveNext()
2016-08-05T16:59:15.5717790Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.5717790Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.5727800Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.5727800Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.5737797Z trace:    at NuGet.Protocol.HttpRetryHandler.<SendAsync>d__0.MoveNext()
2016-08-05T16:59:15.5737797Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.5737797Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.5747797Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.5747797Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.5757789Z trace:    at NuGet.Protocol.HttpSource.<SendWithCredentialSupportAsync>d__30.MoveNext()
2016-08-05T16:59:15.5757789Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.5767789Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.5767789Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.5767789Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.5777787Z trace:    at NuGet.Protocol.HttpSource.<>c__DisplayClass24_0.<<GetAsync>b__0>d.MoveNext()
2016-08-05T16:59:15.5777787Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.5787791Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.5787791Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.5797786Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.5797786Z trace:    at NuGet.Common.ConcurrencyUtilities.<ExecuteWithFileLockedAsync>d__0`1.MoveNext()
2016-08-05T16:59:15.5797786Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.5807783Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.5807783Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.5817785Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.5817785Z trace:    at NuGet.Protocol.HttpSource.<GetAsync>d__24.MoveNext()
2016-08-05T16:59:15.5817785Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.5827786Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.5827786Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.5837787Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.5837787Z trace:    at NuGet.Protocol.Core.v3.ServiceIndexResourceV3Provider.<GetServiceIndexResourceV3>d__9.MoveNext()
2016-08-05T16:59:15.5837787Z trace:    --- End of inner exception stack trace ---
2016-08-05T16:59:15.5847791Z trace:    at NuGet.Protocol.Core.v3.ServiceIndexResourceV3Provider.<GetServiceIndexResourceV3>d__9.MoveNext()
2016-08-05T16:59:15.5857792Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.5857792Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.5867792Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.5867792Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.5877796Z trace:    at NuGet.Protocol.Core.v3.ServiceIndexResourceV3Provider.<TryCreate>d__8.MoveNext()
2016-08-05T16:59:15.5877796Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.5887789Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.5887789Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.5897790Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.5897790Z trace:    at NuGet.Protocol.Core.Types.SourceRepository.<GetResourceAsync>d__11`1.MoveNext()
2016-08-05T16:59:15.5907809Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.5907809Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.5907809Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.5917788Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.5917788Z trace:    at NuGet.Protocol.Core.Types.SourceRepository.<GetResourceAsync>d__10`1.MoveNext()
2016-08-05T16:59:15.5927816Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.5927816Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.5927816Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.5937796Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.5937796Z trace:    at NuGet.Protocol.Core.v3.RemoteRepositories.HttpFileSystemBasedFindPackageByIdResourceProvider.<TryCreate>d__2.MoveNext()
2016-08-05T16:59:15.5947792Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.5947792Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.5947792Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.5957798Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.5957798Z trace:    at NuGet.Protocol.Core.Types.SourceRepository.<GetResourceAsync>d__11`1.MoveNext()
2016-08-05T16:59:15.5967794Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.5967794Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.5967794Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.5977792Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.5977792Z trace:    at NuGet.Protocol.Core.Types.SourceRepository.<GetResourceAsync>d__10`1.MoveNext()
2016-08-05T16:59:15.5977792Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.5987785Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.5987785Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.5997810Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.5997810Z trace:    at NuGet.DependencyResolver.SourceRepositoryDependencyProvider.<EnsureResource>d__19.MoveNext()
2016-08-05T16:59:15.5997810Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.6007840Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.6007840Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.6017821Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
2016-08-05T16:59:15.6017821Z trace:    at NuGet.DependencyResolver.SourceRepositoryDependencyProvider.<FindLibraryAsync>d__14.MoveNext()
2016-08-05T16:59:15.6017821Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.6027807Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.6027807Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.6027807Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.6037790Z trace:    at NuGet.DependencyResolver.RemoteDependencyWalker.<>c__DisplayClass14_1.<<FindLibrary>b__0>d.MoveNext()
2016-08-05T16:59:15.6037790Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.6047792Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.6047792Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.6047792Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.6057812Z trace:    at NuGet.DependencyResolver.RemoteDependencyWalker.<FindLibrary>d__14.MoveNext()
2016-08-05T16:59:15.6057812Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.6067806Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.6067806Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.6067806Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.6077809Z trace:    at NuGet.DependencyResolver.RemoteDependencyWalker.<FindLibraryByVersion>d__13.MoveNext()
2016-08-05T16:59:15.6077809Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.6087793Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.6087793Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.6087793Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.6097783Z trace:    at NuGet.DependencyResolver.RemoteDependencyWalker.<FindLibraryMatch>d__10.MoveNext()
2016-08-05T16:59:15.6097783Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.6107793Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.6107793Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.6107793Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.6117786Z trace:    at NuGet.DependencyResolver.RemoteDependencyWalker.<FindLibraryEntry>d__8.MoveNext()
2016-08-05T16:59:15.6117786Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.6117786Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.6127810Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.6127810Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.6137807Z trace:    at NuGet.DependencyResolver.RemoteDependencyWalker.<CreateGraphNode>d__3.MoveNext()
2016-08-05T16:59:15.6137807Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.6137807Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.6147796Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.6147796Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.6157790Z trace:    at NuGet.DependencyResolver.RemoteDependencyWalker.<CreateGraphNode>d__3.MoveNext()
2016-08-05T16:59:15.6157790Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.6157790Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.6167813Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.6167813Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.6177809Z trace:    at NuGet.Commands.ProjectRestoreCommand.<WalkDependenciesAsync>d__5.MoveNext()
2016-08-05T16:59:15.6177809Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.6177809Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.6187794Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.6187794Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.6197789Z trace:    at NuGet.Commands.ProjectRestoreCommand.<TryRestore>d__3.MoveNext()
2016-08-05T16:59:15.6197789Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.6197789Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.6207815Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.6207815Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.6217806Z trace:    at NuGet.Commands.RestoreCommand.<ExecuteRestoreAsync>d__14.MoveNext()
2016-08-05T16:59:15.6217806Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.6217806Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.6227792Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.6227792Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.6237791Z trace:    at NuGet.Commands.RestoreCommand.<ExecuteAsync>d__8.MoveNext()
2016-08-05T16:59:15.6237791Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.6237791Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.6247813Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.6247813Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.6257807Z trace:    at NuGet.Commands.RestoreRunner.<Execute>d__1.MoveNext()
2016-08-05T16:59:15.6257807Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.6257807Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.6267891Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.6267891Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.6277787Z trace:    at NuGet.Commands.RestoreRunner.<>c__DisplayClass0_0.<<Run>b__0>d.MoveNext()
2016-08-05T16:59:15.6277787Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.6277787Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.6287787Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.6287787Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.6297809Z trace:    at NuGet.Commands.RestoreRunner.<CompleteTaskAsync>d__2.MoveNext()
2016-08-05T16:59:15.6297809Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.6297809Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.6307790Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.6307790Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.6317795Z trace:    at NuGet.Commands.RestoreRunner.<Run>d__0.MoveNext()
2016-08-05T16:59:15.6317795Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.6317795Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.6327780Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.6327780Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.6337815Z trace:    at NuGet.CommandLine.XPlat.RestoreCommand.<>c__DisplayClass0_1.<<Register>b__1>d.MoveNext()
2016-08-05T16:59:15.6337815Z trace:    --- End of inner exception stack trace ---
2016-08-05T16:59:15.6337815Z trace:    at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
2016-08-05T16:59:15.6347968Z trace:    at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
2016-08-05T16:59:15.6347968Z trace:    at Microsoft.Dnx.Runtime.Common.CommandLine.CommandLineApplication.<>c__DisplayClass68_0.<OnExecute>b__0()
2016-08-05T16:59:15.6357793Z trace:    at Microsoft.Dnx.Runtime.Common.CommandLine.CommandLineApplication.Execute(String[] args)
2016-08-05T16:59:15.6357793Z trace:    at NuGet.CommandLine.XPlat.Program.MainInternal(String[] args, CommandOutputLogger log)
2016-08-05T16:59:15.6357793Z trace: ---> (Inner Exception #0) NuGet.Protocol.Core.Types.FatalProtocolException: Unable to load the service index for source https://***.pkgs.visualstudio.com/_packaging/***/nuget/v3/index.json. ---> System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.Http.WinHttpException: The parameter is incorrect
2016-08-05T16:59:15.6367816Z trace:    at System.Net.Http.WinHttpAuthHelper.SetWinHttpCredential(SafeWinHttpHandle requestHandle, ICredentials credentials, Uri uri, UInt32 authScheme, UInt32 authTarget)
2016-08-05T16:59:15.6367816Z trace:    at System.Net.Http.WinHttpAuthHelper.CheckResponseForAuthentication(WinHttpRequestState state, UInt32& proxyAuthScheme, UInt32& serverAuthScheme)
2016-08-05T16:59:15.6377809Z trace:    at System.Net.Http.WinHttpHandler.<StartRequest>d__101.MoveNext()
2016-08-05T16:59:15.6377809Z trace:    --- End of inner exception stack trace ---
2016-08-05T16:59:15.6387793Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.6387793Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.6387793Z trace:    at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
2016-08-05T16:59:15.6397787Z trace:    at System.Net.Http.HttpClient.<FinishSendAsync>d__58.MoveNext()
2016-08-05T16:59:15.6397787Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.6407864Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.6407864Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.6407864Z trace:    at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
2016-08-05T16:59:15.6417784Z trace:    at NuGet.Protocol.TimeoutUtility.<StartWithTimeout>d__0`1.MoveNext()
2016-08-05T16:59:15.6417784Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.6427808Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.6427808Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.6427808Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.6437787Z trace:    at NuGet.Protocol.HttpRetryHandler.<SendAsync>d__0.MoveNext()
2016-08-05T16:59:15.6437787Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.6447791Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.6447791Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.6447791Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.6457815Z trace:    at NuGet.Protocol.HttpSource.<SendWithCredentialSupportAsync>d__30.MoveNext()
2016-08-05T16:59:15.6457815Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.6467805Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.6467805Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.6477812Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.6477812Z trace:    at NuGet.Protocol.HttpSource.<>c__DisplayClass24_0.<<GetAsync>b__0>d.MoveNext()
2016-08-05T16:59:15.6477812Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.6487797Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.6487797Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.6497792Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.6497792Z trace:    at NuGet.Common.ConcurrencyUtilities.<ExecuteWithFileLockedAsync>d__0`1.MoveNext()
2016-08-05T16:59:15.6507792Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.6507792Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.6507792Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.6517817Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.6517817Z trace:    at NuGet.Protocol.HttpSource.<GetAsync>d__24.MoveNext()
2016-08-05T16:59:15.6527811Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.6527811Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.6537793Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.6537793Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.6537793Z trace:    at NuGet.Protocol.Core.v3.ServiceIndexResourceV3Provider.<GetServiceIndexResourceV3>d__9.MoveNext()
2016-08-05T16:59:15.6547783Z trace:    --- End of inner exception stack trace ---
2016-08-05T16:59:15.6547783Z trace:    at NuGet.Protocol.Core.v3.ServiceIndexResourceV3Provider.<GetServiceIndexResourceV3>d__9.MoveNext()
2016-08-05T16:59:15.6557792Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.6557792Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.6557792Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.6567813Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.6567813Z trace:    at NuGet.Protocol.Core.v3.ServiceIndexResourceV3Provider.<TryCreate>d__8.MoveNext()
2016-08-05T16:59:15.6577810Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.6577810Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.6587788Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.6587788Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.6587788Z trace:    at NuGet.Protocol.Core.Types.SourceRepository.<GetResourceAsync>d__11`1.MoveNext()
2016-08-05T16:59:15.6597798Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.6597798Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.6607788Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.6607788Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.6617793Z trace:    at NuGet.Protocol.Core.Types.SourceRepository.<GetResourceAsync>d__10`1.MoveNext()
2016-08-05T16:59:15.6617793Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.6627890Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.6627890Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.6627890Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.6638229Z trace:    at NuGet.Protocol.Core.v3.RemoteRepositories.HttpFileSystemBasedFindPackageByIdResourceProvider.<TryCreate>d__2.MoveNext()
2016-08-05T16:59:15.6638229Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.6647814Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.6647814Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.6657794Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.6657794Z trace:    at NuGet.Protocol.Core.Types.SourceRepository.<GetResourceAsync>d__11`1.MoveNext()
2016-08-05T16:59:15.6657794Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.6667793Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.6667793Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.6677802Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.6677802Z trace:    at NuGet.Protocol.Core.Types.SourceRepository.<GetResourceAsync>d__10`1.MoveNext()
2016-08-05T16:59:15.6687859Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.6687859Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.6687859Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.6697819Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.6697819Z trace:    at NuGet.DependencyResolver.SourceRepositoryDependencyProvider.<EnsureResource>d__19.MoveNext()
2016-08-05T16:59:15.6707811Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.6707811Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.6717793Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.6717793Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
2016-08-05T16:59:15.6717793Z trace:    at NuGet.DependencyResolver.SourceRepositoryDependencyProvider.<FindLibraryAsync>d__14.MoveNext()
2016-08-05T16:59:15.6727882Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.6727882Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.6737793Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.6737793Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.6737793Z trace:    at NuGet.DependencyResolver.RemoteDependencyWalker.<>c__DisplayClass14_1.<<FindLibrary>b__0>d.MoveNext()
2016-08-05T16:59:15.6747814Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.6757786Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.6757786Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.6767795Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.6767795Z trace:    at NuGet.DependencyResolver.RemoteDependencyWalker.<FindLibrary>d__14.MoveNext()
2016-08-05T16:59:15.6767795Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.6777821Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.6777821Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.6787806Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.6787806Z trace:    at NuGet.DependencyResolver.RemoteDependencyWalker.<FindLibraryByVersion>d__13.MoveNext()
2016-08-05T16:59:15.6787806Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.6797791Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.6797791Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.6807788Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.6807788Z trace:    at NuGet.DependencyResolver.RemoteDependencyWalker.<FindLibraryMatch>d__10.MoveNext()
2016-08-05T16:59:15.6807788Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.6817826Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.6817826Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.6827819Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.6827819Z trace:    at NuGet.DependencyResolver.RemoteDependencyWalker.<FindLibraryEntry>d__8.MoveNext()
2016-08-05T16:59:15.6827819Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.6837784Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.6837784Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.6847809Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.6847809Z trace:    at NuGet.DependencyResolver.RemoteDependencyWalker.<CreateGraphNode>d__3.MoveNext()
2016-08-05T16:59:15.6847809Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.6857807Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.6857807Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.6857807Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.6867792Z trace:    at NuGet.DependencyResolver.RemoteDependencyWalker.<CreateGraphNode>d__3.MoveNext()
2016-08-05T16:59:15.6867792Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.6877790Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.6877790Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.6877790Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.6887812Z trace:    at NuGet.Commands.ProjectRestoreCommand.<WalkDependenciesAsync>d__5.MoveNext()
2016-08-05T16:59:15.6887812Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.6897806Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.6897806Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.6897806Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.6907917Z trace:    at NuGet.Commands.ProjectRestoreCommand.<TryRestore>d__3.MoveNext()
2016-08-05T16:59:15.6907917Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.6917814Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.6917814Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.6917814Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.6927803Z trace:    at NuGet.Commands.RestoreCommand.<ExecuteRestoreAsync>d__14.MoveNext()
2016-08-05T16:59:15.6927803Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.6927803Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.6937791Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.6937791Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.6947789Z trace:    at NuGet.Commands.RestoreCommand.<ExecuteAsync>d__8.MoveNext()
2016-08-05T16:59:15.6947789Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.6947789Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.6957814Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.6957814Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.6967807Z trace:    at NuGet.Commands.RestoreRunner.<Execute>d__1.MoveNext()
2016-08-05T16:59:15.6967807Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.6967807Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.6977796Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.6977796Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.6987795Z trace:    at NuGet.Commands.RestoreRunner.<>c__DisplayClass0_0.<<Run>b__0>d.MoveNext()
2016-08-05T16:59:15.6987795Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.6987795Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.6997813Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.6997813Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.7007808Z trace:    at NuGet.Commands.RestoreRunner.<CompleteTaskAsync>d__2.MoveNext()
2016-08-05T16:59:15.7007808Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.7007808Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.7017791Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.7017791Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.7027781Z trace:    at NuGet.Commands.RestoreRunner.<Run>d__0.MoveNext()
2016-08-05T16:59:15.7027781Z trace: --- End of stack trace from previous location where exception was thrown ---
2016-08-05T16:59:15.7037839Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-08-05T16:59:15.7037839Z trace:    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-08-05T16:59:15.7037839Z trace:    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
2016-08-05T16:59:15.7047806Z trace:    at NuGet.CommandLine.XPlat.RestoreCommand.<>c__DisplayClass0_1.<<Register>b__1>d.MoveNext()<---

This is my Nuget.config file

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <clear />
    <add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
    <add key="***" value="https://***.pkgs.visualstudio.com/_packaging/***/nuget/v3/index.json" />
  </packageSources>
  <disabledPackageSources>
    <add key="Microsoft and .NET" value="true" />
  </disabledPackageSources>
  <activePackageSource>
    <add key="All" value="(Aggregate source)" />
  </activePackageSource>
  <packageSourceCredentials>
    <VSTS>
      <add key="Username" value="***" />
      <add key="ClearTextPassword" value="***" />
    </VSTS>
  </packageSourceCredentials>
</configuration>

Pernal Access Token generated using the instructions at https://www.visualstudio.com/en-us/docs/setup-admin/team-services/use-personal-access-tokens-to-authenticate

Following steps described at https://www.visualstudio.com/en-us/docs/package/get-started/nuget/auth#net-core

I also get the same error if I don't use any credentials.

I just realized I was making a silly mistake by using as my root key for my credentials. Using the exact same steps as above but changing my Nuget.config file to the below allowed the dotnet restore to run and get my packages from the private feed:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <clear />
    <add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
    <add key="MYKEY" value="https://***.pkgs.visualstudio.com/_packaging/***/nuget/v3/index.json" />
  </packageSources>
  <disabledPackageSources>
    <add key="Microsoft and .NET" value="true" />
  </disabledPackageSources>
  <activePackageSource>
    <add key="All" value="(Aggregate source)" />
  </activePackageSource>
  <packageSourceCredentials>
    <MYKEY>
      <add key="Username" value="***" />
      <add key="ClearTextPassword" value="***" />
    </MYKEY>
  </packageSourceCredentials>
</configuration>

There is a difference in that you are using the username and password/token approach @GabrielFerrarini.
I am using the approach where the build identity has access to the package feed, so in that case you can just leave the credentials out of the nuget.config and let it run (well, at least that's how the normal nuget restore works).

I also don't get the exception with the wincred stuff, mine just blanks out after the error

@janpieterz I wasn't getting the exception until I put the "--verbosity" flag. It was just the same error that you're getting. I'm also hoping that the dotnet restore feature will run without providing credentials, but this is how I have to go in the meantime :).

You're right! Thought I tried it with Debug but did Information -.-'. Mine now also returns the SetWinHttpCredential.

I'll have to change the config for now to allow this to work, thanks for the push in the right direction.

Let's hope we can get rid of that when this bug is solved :)

@jainaashish In order to not push access token into the repository I did the following (Inspired by this: https://codingcase.com/2016/07/27/vsts-build-setup-custom-nuget-feeds-with-authentication/)

Two powershell steps:

Remove Nuget Source (Continue on error true)

param($user, $pwd)

$nugetFile = "$ENV:AGENT_HOMEDIRECTORY\agent\worker\tools\nuget.exe"

if (-not (Test-Path $nugetFile))
{
  Write-Error "nuget.exe could not be located."
  return
}

Write-Output "nuget.exe located"

$cmd = "$nugetFile sources remove -name *** -source https://***.pkgs.visualstudio.com/_packaging/***/nuget/v3/index.json"
Write-Output $cmd
iex $cmd

Add Nuget Source

param($user, $pwd)

$nugetFile = "$ENV:AGENT_HOMEDIRECTORY\agent\worker\tools\nuget.exe"

if (-not (Test-Path $nugetFile))
{
  Write-Error "nuget.exe could not be located."
  return
}

Write-Output "nuget.exe located"

$cmd = "$nugetFile sources add -name *** -source https://***.pkgs.visualstudio.com/_packaging/***/nuget/v3/index.json -username $user -password $pwd -StorePasswordInClearText"
Write-Output $cmd
iex $cmd

I lack powershell skills though so I added the "remove" step before the add "step" in order to avoid the "alredy existing source" error. Allowing the "add" step to continue on error (instead of removing the source first) would cause the user name and token to be unreachable.

Maybe someone can improve this flow.

log  : Restoring packages for D:\z\Solution\Project.Test\project.json...
error: Unable to load the service index for source https://company.pkgs.visualstudio.com/_packaging/feedname/nuget/v3/index.json.
error:   An error occurred while sending the request.
error:   The parameter is incorrect

Misleading error message. The problem is lacking authentication.
It DOES work for .NET v4.x nuget package restores - it does NOT work for .NET CORE solutions.

I fear while fiddling around with NuGet for .NET CORE I break NuGet for .NET v4.x again. It was a mess to get that going with authentication in the first place.
At least to me NuGet is a really bad user experience. Still quite obviously you see it was never designed to work with authentication. I wonder when this is properly fixed. Tooling is supposed to help not to stop you from working :(

I had to use @GabrielFerrarini approach to get this working. Of note, the path to nuget.exe changed in the version of the agent that I was using. Also, the user and pwd arguments should be pass like this:
-user "someusername" -pwd "somepwd"

I have verified that dotnet.exe restore works with VSTS when using a PAT, provided in NuGet.Config with clear text.

If anyone is still hitting issues with VSTS feeds please open a new issue and provide full repro steps.

Was this page helpful?
0 / 5 - 0 ratings