question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NuGet Installer no longer works

See original GitHub issue

I have a build definition that has stopped working due to a 401 when trying to restore packages from a Package management feed for the project. This hs stopped working randomly over the weekend, and I have tried the new version (1.0) of the NuGet Installer task, but still same issue.

Any help appreciated, as this is an urgently needed fix!

Below is the exception:

2017-05-15T12:43:12.6322835Z ##[section]Starting: Restore NuGet Packages 2017-05-15T12:43:12.6322835Z ============================================================================== 2017-05-15T12:43:12.6322835Z Task : NuGet Restore 2017-05-15T12:43:12.6322835Z Description : Restores NuGet packages in preparation for a Visual Studio Build step. 2017-05-15T12:43:12.6322835Z Version : 1.0.0 2017-05-15T12:43:12.6322835Z Author : Microsoft Corporation 2017-05-15T12:43:12.6322835Z Help : More Information 2017-05-15T12:43:12.6322835Z ============================================================================== 2017-05-15T12:43:13.7924324Z [command]C:\Windows\system32\chcp.com 65001 2017-05-15T12:43:13.8128292Z Active code page: 65001 2017-05-15T12:43:14.3374496Z Downloading: https://dist.nuget.org/win-x86-commandline/v4.0.0/nuget.exe 2017-05-15T12:43:14.4389254Z Caching tool: NuGet 4.0.0 x64 2017-05-15T12:43:14.4538759Z Using version: 4.0.0 2017-05-15T12:43:14.4538759Z Found tool in cache: NuGet 4.0.0 x64 2017-05-15T12:43:14.4838754Z Detected NuGet version 4.0.0.2283 / 4.0.0 2017-05-15T12:43:14.4858757Z SYSTEMVSSCONNECTION exists true 2017-05-15T12:43:14.7596804Z save nuget.config to temp config file 2017-05-15T12:43:14.7596804Z Preparing to set credentials in NuGet.config 2017-05-15T12:43:14.7646788Z [command]d:\a_tool\NuGet\4.0.0\x64\nuget.exe sources Remove -NonInteractive -Name 245db6c8-7388-4394-a847-511b8116f00e -ConfigFile d:\a\1\Nuget\tempNuGet_462.config 2017-05-15T12:43:15.8193943Z Unable to find any package source(s) matching name: 245db6c8-7388-4394-a847-511b8116f00e. 2017-05-15T12:43:15.8214191Z [command]d:\a_tool\NuGet\4.0.0\x64\nuget.exe sources Remove -NonInteractive -Name NuGetOrg -ConfigFile d:\a\1\Nuget\tempNuGet_462.config 2017-05-15T12:43:16.3243942Z Unable to find any package source(s) matching name: NuGetOrg. 2017-05-15T12:43:16.3243942Z Setting credentials in NuGet.config 2017-05-15T12:43:16.3303955Z [command]d:\a_tool\NuGet\4.0.0\x64\nuget.exe sources Add -NonInteractive -Name 245db6c8-7388-4394-a847-511b8116f00e -Source https://PROJECT_NAME.pkgs.visualstudio.com/_packaging/245db6c8-7388-4394-a847-511b8116f00e/nuget/v3/index.json -ConfigFile d:\a\1\Nuget\tempNuGet_462.config 2017-05-15T12:43:16.8843953Z Package Source with Name: 245db6c8-7388-4394-a847-511b8116f00e added successfully. 2017-05-15T12:43:16.8863942Z [command]d:\a_tool\NuGet\4.0.0\x64\nuget.exe sources Add -NonInteractive -Name NuGetOrg -Source https://api.nuget.org/v3/index.json -ConfigFile d:\a\1\Nuget\tempNuGet_462.config 2017-05-15T12:43:17.4433942Z Package Source with Name: NuGetOrg added successfully. 2017-05-15T12:43:17.4453976Z [command]d:\a_tool\NuGet\4.0.0\x64\nuget.exe restore d:\a\1\s\PROJECT_NAME.Framework.sln -NoCache -Verbosity Detailed -NonInteractive -ConfigFile d:\a\1\Nuget\tempNuGet_462.config 2017-05-15T12:43:17.9383960Z NuGet Version: 4.0.0.2283 2017-05-15T12:43:18.4590379Z MSBuild auto-detection: using msbuild version ‘15.1.1012.6693’ from ‘C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\bin’. Use option -MSBuildVersion to force nuget to use a specific version of MSBuild. 2017-05-15T12:43:18.6569474Z MSBuild P2P timeout [ms]: 120000 2017-05-15T12:43:18.6719477Z C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\bin\msbuild.exe /t:GenerateRestoreGraphFile /nologo /nr:false /p:RestoreUseCustomAfterTargets=true /p:BuildProjectReferences=false /v:q /p:NuGetRestoreTargets=“d:\a_temp\NuGet-Scratch\x5m2uixg.lx0.targets” /p:RestoreTaskAssemblyFile=“d:\a_tool\NuGet\4.0.0\x64\nuget.exe” /p:RestoreGraphOutputPath=“d:\a_temp\NuGet-Scratch\oozooso2.xon.result” /p:ExcludeRestorePackageImports=true /p:RestoreRecursive=False /p:RestoreProjectFilterMode=exclusionlist /p:RestoreContinueOnError=WarnAndContinue /p:RestoreGraphProjectInput=“d:\a\1\s\src\PROJECT_NAME.Core\PROJECT_NAME.Core.csproj;d:\a\1\s\tests\PROJECT_NAME.Core.UnitTests\PROJECT_NAME.Core.UnitTests.csproj;d:\a\1\s\src\PROJECT_NAME.TypeMapping.Core\PROJECT_NAME.TypeMapping.Core.csproj;d:\a\1\s\tests\PROJECT_NAME.TypeMapping.Core.UnitTests\PROJECT_NAME.TypeMapping.Core.UnitTests.csproj;d:\a\1\s\src\PROJECT_NAME.TypeMapping.AutoMapper\PROJECT_NAME.TypeMapping.AutoMapper.csproj;d:\a\1\s\tests\PROJECT_NAME.TypeMapping.AutoMapper.UnitTests\PROJECT_NAME.TypeMapping.AutoMapper.UnitTests.csproj;d:\a\1\s\tests\PROJECT_NAME.AspNetCore.Swashbuckle.Swagger.AutoRest.UnitTests\PROJECT_NAME.AspNetCore.Swashbuckle.Swagger.AutoRest.UnitTests.csproj;d:\a\1\s\src\PROJECT_NAME.AspNetCore.Swashbuckle.Swagger.AutoRest\PROJECT_NAME.AspNetCore.Swashbuckle.Swagger.AutoRest.csproj;d:\a\1\s\src\PROJECT_NAME.Automation.PageObjectModel.Selenium\PROJECT_NAME.Automation.PageObjectModel.Selenium.csproj;d:\a\1\s\src\PROJECT_NAME.Automation.PageObjectModel.Core\PROJECT_NAME.Automation.PageObjectModel.Core.csproj;d:\a\1\s\tests\PROJECT_NAME.Automation.PageObjectModel.Core.UnitTests\PROJECT_NAME.Automation.PageObjectModel.Core.UnitTests.csproj;d:\a\1\s\tests\PROJECT_NAME.Automation.PageObjectModel.Selenium.UnitTests\PROJECT_NAME.Automation.PageObjectModel.Selenium.UnitTests.csproj;” “d:\a_temp\NuGet-Scratch\x5m2uixg.lx0.targets” 2017-05-15T12:43:25.0324253Z Running restore with 2 concurrent jobs. 2017-05-15T12:43:25.0334251Z Reading project file d:\a\1\s\src\PROJECT_NAME.AspNetCore.Swashbuckle.Swagger.AutoRest\PROJECT_NAME.AspNetCore.Swashbuckle.Swagger.AutoRest.csproj. 2017-05-15T12:43:25.0334251Z Reading project file d:\a\1\s\src\PROJECT_NAME.Automation.PageObjectModel.Core\PROJECT_NAME.Automation.PageObjectModel.Core.csproj. 2017-05-15T12:43:25.0334251Z Restoring packages for d:\a\1\s\src\PROJECT_NAME.Automation.PageObjectModel.Core\PROJECT_NAME.Automation.PageObjectModel.Core.csproj… 2017-05-15T12:43:25.0334251Z Restoring packages for d:\a\1\s\src\PROJECT_NAME.AspNetCore.Swashbuckle.Swagger.AutoRest\PROJECT_NAME.AspNetCore.Swashbuckle.Swagger.AutoRest.csproj… 2017-05-15T12:43:25.0334251Z Restoring packages for .NETFramework,Version=v4.6.1… 2017-05-15T12:43:25.0334251Z Restoring packages for .NETStandard,Version=v1.6… 2017-05-15T12:43:25.0334251Z CredentialProvider.TeamBuild: “d:\a_tasks\NuGetRestore_333b11bd-d341-40d9-afcf-b32d5ce6f23b\1.0.0\node_modules\nuget-task-common\NuGet\CredentialProvider\CredentialProvider.TeamBuild.exe” -uri https://PROJECT_NAME.pkgs.visualstudio.com/_packaging/245db6c8-7388-4394-a847-511b8116f00e/nuget/v3/index.json -nonInteractive -verbosity detailed 2017-05-15T12:43:25.0334251Z CredentialProvider.TeamBuild: URI Prefixes: 2017-05-15T12:43:25.0334251Z CredentialProvider.TeamBuild: https://PROJECT_NAME.visualstudio.com/ 2017-05-15T12:43:25.0334251Z CredentialProvider.TeamBuild: https://PROJECT_NAME.pkgs.visualstudio.com/ 2017-05-15T12:43:25.0334251Z CredentialProvider.TeamBuild: URI: https://PROJECT_NAME.pkgs.visualstudio.com/_packaging/245db6c8-7388-4394-a847-511b8116f00e/nuget/v3/index.json 2017-05-15T12:43:25.0334251Z CredentialProvider.TeamBuild: Is retry: False 2017-05-15T12:43:25.0334251Z CredentialProvider.TeamBuild: Matched prefix: https://PROJECT_NAME.pkgs.visualstudio.com/ 2017-05-15T12:43:25.4584254Z CredentialProvider.TeamBuild: “d:\a_tasks\NuGetRestore_333b11bd-d341-40d9-afcf-b32d5ce6f23b\1.0.0\node_modules\nuget-task-common\NuGet\CredentialProvider\CredentialProvider.TeamBuild.exe” -uri https://PROJECT_NAME.pkgs.visualstudio.com/_packaging/245db6c8-7388-4394-a847-511b8116f00e/nuget/v3/index.json -isRetry -nonInteractive -verbosity detailed 2017-05-15T12:43:25.4594251Z CredentialProvider.TeamBuild: URI Prefixes: 2017-05-15T12:43:25.4594251Z CredentialProvider.TeamBuild: https://PROJECT_NAME.visualstudio.com/ 2017-05-15T12:43:25.4594251Z CredentialProvider.TeamBuild: https://PROJECT_NAME.pkgs.visualstudio.com/ 2017-05-15T12:43:25.4594251Z CredentialProvider.TeamBuild: URI: https://PROJECT_NAME.pkgs.visualstudio.com/_packaging/245db6c8-7388-4394-a847-511b8116f00e/nuget/v3/index.json 2017-05-15T12:43:25.4594251Z CredentialProvider.TeamBuild: Is retry: True 2017-05-15T12:43:25.4594251Z CredentialProvider.TeamBuild: Matched prefix: https://PROJECT_NAME.pkgs.visualstudio.com/ 2017-05-15T12:43:25.6724260Z CredentialProvider.TeamBuild: Failed to authenticate to https://PROJECT_NAME.pkgs.visualstudio.com/_packaging/245db6c8-7388-4394-a847-511b8116f00e/nuget/v3/index.json from your project collection, prefix = https://PROJECT_NAME.pkgs.visualstudio.com/ 2017-05-15T12:43:25.8779993Z System.AggregateException: One or more errors occurred. —> NuGet.Protocol.Core.Types.FatalProtocolException: Unable to load the service index for source https://PROJECT_NAME.pkgs.visualstudio.com/_packaging/245db6c8-7388-4394-a847-511b8116f00e/nuget/v3/index.json. —> System.Net.Http.HttpRequestException: Response status code does not indicate success: 403 (Forbidden). 2017-05-15T12:43:25.8779993Z at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode() 2017-05-15T12:43:25.8779993Z at NuGet.Protocol.HttpSource.<>c__DisplayClass12_01.<<GetAsync>b__0>d.MoveNext() 2017-05-15T12:43:25.8779993Z --- End of stack trace from previous location where exception was thrown --- 2017-05-15T12:43:25.8779993Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8779993Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8779993Z at NuGet.Common.ConcurrencyUtilities.<ExecuteWithFileLockedAsync>d__21.MoveNext() 2017-05-15T12:43:25.8779993Z — End of stack trace from previous location where exception was thrown — 2017-05-15T12:43:25.8779993Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8779993Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8779993Z at NuGet.Protocol.HttpSource.<GetAsync>d__121.MoveNext() 2017-05-15T12:43:25.8779993Z --- End of stack trace from previous location where exception was thrown --- 2017-05-15T12:43:25.8779993Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8779993Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8779993Z at NuGet.Protocol.ServiceIndexResourceV3Provider.<GetServiceIndexResourceV3>d__9.MoveNext() 2017-05-15T12:43:25.8779993Z --- End of inner exception stack trace --- 2017-05-15T12:43:25.8779993Z at NuGet.Protocol.ServiceIndexResourceV3Provider.<GetServiceIndexResourceV3>d__9.MoveNext() 2017-05-15T12:43:25.8779993Z --- End of stack trace from previous location where exception was thrown --- 2017-05-15T12:43:25.8779993Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8779993Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8779993Z at NuGet.Protocol.ServiceIndexResourceV3Provider.<TryCreate>d__8.MoveNext() 2017-05-15T12:43:25.8789989Z --- End of stack trace from previous location where exception was thrown --- 2017-05-15T12:43:25.8789989Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8789989Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8789989Z at NuGet.Protocol.Core.Types.SourceRepository.<GetResourceAsync>d__161.MoveNext() 2017-05-15T12:43:25.8789989Z — End of stack trace from previous location where exception was thrown — 2017-05-15T12:43:25.8789989Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8789989Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8789989Z at NuGet.Protocol.Core.Types.SourceRepository.<GetResourceAsync>d__151.MoveNext() 2017-05-15T12:43:25.8789989Z --- End of stack trace from previous location where exception was thrown --- 2017-05-15T12:43:25.8789989Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8789989Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8789989Z at NuGet.Protocol.HttpFileSystemBasedFindPackageByIdResourceProvider.<TryCreate>d__1.MoveNext() 2017-05-15T12:43:25.8789989Z --- End of stack trace from previous location where exception was thrown --- 2017-05-15T12:43:25.8789989Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8789989Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8789989Z at NuGet.Protocol.Core.Types.SourceRepository.<GetResourceAsync>d__161.MoveNext() 2017-05-15T12:43:25.8789989Z — End of stack trace from previous location where exception was thrown — 2017-05-15T12:43:25.8789989Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8789989Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8789989Z at NuGet.Protocol.Core.Types.SourceRepository.<GetResourceAsync>d__151.MoveNext() 2017-05-15T12:43:25.8789989Z --- End of stack trace from previous location where exception was thrown --- 2017-05-15T12:43:25.8789989Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8789989Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8789989Z at NuGet.Commands.SourceRepositoryDependencyProvider.<EnsureResource>d__17.MoveNext() 2017-05-15T12:43:25.8789989Z --- End of stack trace from previous location where exception was thrown --- 2017-05-15T12:43:25.8789989Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8789989Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8789989Z at NuGet.Commands.SourceRepositoryDependencyProvider.<FindLibraryAsync>d__12.MoveNext() 2017-05-15T12:43:25.8789989Z --- End of stack trace from previous location where exception was thrown --- 2017-05-15T12:43:25.8789989Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8789989Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8789989Z at NuGet.DependencyResolver.RemoteDependencyWalker.<>c__DisplayClass13_1.<<FindLibrary>b__0>d.MoveNext() 2017-05-15T12:43:25.8789989Z --- End of stack trace from previous location where exception was thrown --- 2017-05-15T12:43:25.8789989Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8789989Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8789989Z at NuGet.DependencyResolver.RemoteDependencyWalker.<FindLibrary>d__13.MoveNext() 2017-05-15T12:43:25.8789989Z --- End of stack trace from previous location where exception was thrown --- 2017-05-15T12:43:25.8789989Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8789989Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8789989Z at NuGet.DependencyResolver.RemoteDependencyWalker.<FindLibraryByVersion>d__12.MoveNext() 2017-05-15T12:43:25.8789989Z --- End of stack trace from previous location where exception was thrown --- 2017-05-15T12:43:25.8789989Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8789989Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8789989Z at NuGet.DependencyResolver.RemoteDependencyWalker.<FindLibraryMatch>d__10.MoveNext() 2017-05-15T12:43:25.8789989Z --- End of stack trace from previous location where exception was thrown --- 2017-05-15T12:43:25.8789989Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8789989Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8789989Z at NuGet.DependencyResolver.RemoteDependencyWalker.<FindLibraryEntry>d__8.MoveNext() 2017-05-15T12:43:25.8789989Z --- End of stack trace from previous location where exception was thrown --- 2017-05-15T12:43:25.8799996Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8799996Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8799996Z at NuGet.DependencyResolver.RemoteDependencyWalker.<CreateGraphNode>d__3.MoveNext() 2017-05-15T12:43:25.8799996Z --- End of stack trace from previous location where exception was thrown --- 2017-05-15T12:43:25.8799996Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8799996Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8799996Z at NuGet.DependencyResolver.RemoteDependencyWalker.<CreateGraphNode>d__3.MoveNext() 2017-05-15T12:43:25.8799996Z --- End of stack trace from previous location where exception was thrown --- 2017-05-15T12:43:25.8799996Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8799996Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8799996Z at NuGet.Commands.ProjectRestoreCommand.<WalkDependenciesAsync>d__5.MoveNext() 2017-05-15T12:43:25.8799996Z --- End of stack trace from previous location where exception was thrown --- 2017-05-15T12:43:25.8799996Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8799996Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8799996Z at NuGet.Commands.ProjectRestoreCommand.<TryRestore>d__3.MoveNext() 2017-05-15T12:43:25.8799996Z --- End of stack trace from previous location where exception was thrown --- 2017-05-15T12:43:25.8819989Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8819989Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8819989Z at NuGet.Commands.RestoreCommand.<ExecuteRestoreAsync>d__15.MoveNext() 2017-05-15T12:43:25.8819989Z --- End of stack trace from previous location where exception was thrown --- 2017-05-15T12:43:25.8819989Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8819989Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8819989Z at NuGet.Commands.RestoreCommand.<ExecuteAsync>d__8.MoveNext() 2017-05-15T12:43:25.8819989Z --- End of stack trace from previous location where exception was thrown --- 2017-05-15T12:43:25.8819989Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8819989Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8819989Z at NuGet.Commands.RestoreRunner.<ExecuteAsync>d__7.MoveNext() 2017-05-15T12:43:25.8819989Z --- End of stack trace from previous location where exception was thrown --- 2017-05-15T12:43:25.8819989Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8819989Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8819989Z at NuGet.Commands.RestoreRunner.<ExecuteAndCommitAsync>d__6.MoveNext() 2017-05-15T12:43:25.8819989Z --- End of stack trace from previous location where exception was thrown --- 2017-05-15T12:43:25.8819989Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8819989Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8819989Z at NuGet.Commands.RestoreRunner.<CompleteTaskAsync>d__9.MoveNext() 2017-05-15T12:43:25.8819989Z --- End of stack trace from previous location where exception was thrown --- 2017-05-15T12:43:25.8819989Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8819989Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8819989Z at NuGet.Commands.RestoreRunner.<RunAsync>d__2.MoveNext() 2017-05-15T12:43:25.8819989Z --- End of stack trace from previous location where exception was thrown --- 2017-05-15T12:43:25.8819989Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8819989Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8819989Z at NuGet.Commands.RestoreRunner.<Run>d__1.MoveNext() 2017-05-15T12:43:25.8819989Z --- End of stack trace from previous location where exception was thrown --- 2017-05-15T12:43:25.8819989Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8819989Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8819989Z at NuGet.CommandLine.RestoreCommand.<ExecuteCommandAsync>d__30.MoveNext() 2017-05-15T12:43:25.8819989Z --- End of inner exception stack trace --- 2017-05-15T12:43:25.8819989Z at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) 2017-05-15T12:43:25.8819989Z at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) 2017-05-15T12:43:25.8819989Z at NuGet.CommandLine.Command.Execute() 2017-05-15T12:43:25.8819989Z at NuGet.CommandLine.Program.MainCore(String workingDirectory, String[] args) 2017-05-15T12:43:25.8819989Z ---> (Inner Exception #0) NuGet.Protocol.Core.Types.FatalProtocolException: Unable to load the service index for source https://PROJECT_NAME.pkgs.visualstudio.com/_packaging/245db6c8-7388-4394-a847-511b8116f00e/nuget/v3/index.json. ---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 403 (Forbidden). 2017-05-15T12:43:25.8819989Z at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode() 2017-05-15T12:43:25.8819989Z at NuGet.Protocol.HttpSource.<>c__DisplayClass12_01.<<GetAsync>b__0>d.MoveNext() 2017-05-15T12:43:25.8819989Z — End of stack trace from previous location where exception was thrown — 2017-05-15T12:43:25.8819989Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8819989Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8819989Z at NuGet.Common.ConcurrencyUtilities.<ExecuteWithFileLockedAsync>d__21.MoveNext() 2017-05-15T12:43:25.8819989Z --- End of stack trace from previous location where exception was thrown --- 2017-05-15T12:43:25.8819989Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8830023Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8830023Z at NuGet.Protocol.HttpSource.<GetAsync>d__121.MoveNext() 2017-05-15T12:43:25.8830023Z — End of stack trace from previous location where exception was thrown — 2017-05-15T12:43:25.8830023Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8830023Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8830023Z at NuGet.Protocol.ServiceIndexResourceV3Provider.<GetServiceIndexResourceV3>d__9.MoveNext() 2017-05-15T12:43:25.8830023Z — End of inner exception stack trace — 2017-05-15T12:43:25.8830023Z at NuGet.Protocol.ServiceIndexResourceV3Provider.<GetServiceIndexResourceV3>d__9.MoveNext() 2017-05-15T12:43:25.8830023Z — End of stack trace from previous location where exception was thrown — 2017-05-15T12:43:25.8830023Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8830023Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8830023Z at NuGet.Protocol.ServiceIndexResourceV3Provider.<TryCreate>d__8.MoveNext() 2017-05-15T12:43:25.8830023Z — End of stack trace from previous location where exception was thrown — 2017-05-15T12:43:25.8830023Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8830023Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8830023Z at NuGet.Protocol.Core.Types.SourceRepository.<GetResourceAsync>d__161.MoveNext() 2017-05-15T12:43:25.8830023Z --- End of stack trace from previous location where exception was thrown --- 2017-05-15T12:43:25.8830023Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8830023Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8830023Z at NuGet.Protocol.Core.Types.SourceRepository.<GetResourceAsync>d__151.MoveNext() 2017-05-15T12:43:25.8830023Z — End of stack trace from previous location where exception was thrown — 2017-05-15T12:43:25.8830023Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8830023Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8830023Z at NuGet.Protocol.HttpFileSystemBasedFindPackageByIdResourceProvider.<TryCreate>d__1.MoveNext() 2017-05-15T12:43:25.8830023Z — End of stack trace from previous location where exception was thrown — 2017-05-15T12:43:25.8830023Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8830023Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8830023Z at NuGet.Protocol.Core.Types.SourceRepository.<GetResourceAsync>d__161.MoveNext() 2017-05-15T12:43:25.8830023Z --- End of stack trace from previous location where exception was thrown --- 2017-05-15T12:43:25.8830023Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8830023Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8830023Z at NuGet.Protocol.Core.Types.SourceRepository.<GetResourceAsync>d__151.MoveNext() 2017-05-15T12:43:25.8830023Z — End of stack trace from previous location where exception was thrown — 2017-05-15T12:43:25.8830023Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8830023Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8830023Z at NuGet.Commands.SourceRepositoryDependencyProvider.<EnsureResource>d__17.MoveNext() 2017-05-15T12:43:25.8830023Z — End of stack trace from previous location where exception was thrown — 2017-05-15T12:43:25.8830023Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8830023Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8830023Z at NuGet.Commands.SourceRepositoryDependencyProvider.<FindLibraryAsync>d__12.MoveNext() 2017-05-15T12:43:25.8830023Z — End of stack trace from previous location where exception was thrown — 2017-05-15T12:43:25.8830023Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8830023Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8830023Z at NuGet.DependencyResolver.RemoteDependencyWalker.<>c__DisplayClass13_1.<<FindLibrary>b__0>d.MoveNext() 2017-05-15T12:43:25.8830023Z — End of stack trace from previous location where exception was thrown — 2017-05-15T12:43:25.8830023Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8830023Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8830023Z at NuGet.DependencyResolver.RemoteDependencyWalker.<FindLibrary>d__13.MoveNext() 2017-05-15T12:43:25.8830023Z — End of stack trace from previous location where exception was thrown — 2017-05-15T12:43:25.8830023Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8830023Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8830023Z at NuGet.DependencyResolver.RemoteDependencyWalker.<FindLibraryByVersion>d__12.MoveNext() 2017-05-15T12:43:25.8830023Z — End of stack trace from previous location where exception was thrown — 2017-05-15T12:43:25.8830023Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8830023Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8830023Z at NuGet.DependencyResolver.RemoteDependencyWalker.<FindLibraryMatch>d__10.MoveNext() 2017-05-15T12:43:25.8830023Z — End of stack trace from previous location where exception was thrown — 2017-05-15T12:43:25.8830023Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8830023Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8830023Z at NuGet.DependencyResolver.RemoteDependencyWalker.<FindLibraryEntry>d__8.MoveNext() 2017-05-15T12:43:25.8830023Z — End of stack trace from previous location where exception was thrown — 2017-05-15T12:43:25.8830023Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8830023Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8830023Z at NuGet.DependencyResolver.RemoteDependencyWalker.<CreateGraphNode>d__3.MoveNext() 2017-05-15T12:43:25.8841309Z — End of stack trace from previous location where exception was thrown — 2017-05-15T12:43:25.8841309Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8841309Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8841309Z at NuGet.DependencyResolver.RemoteDependencyWalker.<CreateGraphNode>d__3.MoveNext() 2017-05-15T12:43:25.8841309Z — End of stack trace from previous location where exception was thrown — 2017-05-15T12:43:25.8841309Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8841309Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8841309Z at NuGet.Commands.ProjectRestoreCommand.<WalkDependenciesAsync>d__5.MoveNext() 2017-05-15T12:43:25.8841309Z — End of stack trace from previous location where exception was thrown — 2017-05-15T12:43:25.8841309Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8841309Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8841309Z at NuGet.Commands.ProjectRestoreCommand.<TryRestore>d__3.MoveNext() 2017-05-15T12:43:25.8841309Z — End of stack trace from previous location where exception was thrown — 2017-05-15T12:43:25.8841309Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8841309Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8841309Z at NuGet.Commands.RestoreCommand.<ExecuteRestoreAsync>d__15.MoveNext() 2017-05-15T12:43:25.8841309Z — End of stack trace from previous location where exception was thrown — 2017-05-15T12:43:25.8841309Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8841309Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8841309Z at NuGet.Commands.RestoreCommand.<ExecuteAsync>d__8.MoveNext() 2017-05-15T12:43:25.8841309Z — End of stack trace from previous location where exception was thrown — 2017-05-15T12:43:25.8841309Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8841309Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8841309Z at NuGet.Commands.RestoreRunner.<ExecuteAsync>d__7.MoveNext() 2017-05-15T12:43:25.8841309Z — End of stack trace from previous location where exception was thrown — 2017-05-15T12:43:25.8841309Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8841309Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8841309Z at NuGet.Commands.RestoreRunner.<ExecuteAndCommitAsync>d__6.MoveNext() 2017-05-15T12:43:25.8841309Z — End of stack trace from previous location where exception was thrown — 2017-05-15T12:43:25.8841309Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8841309Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8841309Z at NuGet.Commands.RestoreRunner.<CompleteTaskAsync>d__9.MoveNext() 2017-05-15T12:43:25.8841309Z — End of stack trace from previous location where exception was thrown — 2017-05-15T12:43:25.8841309Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8841309Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8841309Z at NuGet.Commands.RestoreRunner.<RunAsync>d__2.MoveNext() 2017-05-15T12:43:25.8841309Z — End of stack trace from previous location where exception was thrown — 2017-05-15T12:43:25.8841309Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8841309Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8841309Z at NuGet.Commands.RestoreRunner.<Run>d__1.MoveNext() 2017-05-15T12:43:25.8841309Z — End of stack trace from previous location where exception was thrown — 2017-05-15T12:43:25.8850029Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2017-05-15T12:43:25.8850029Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2017-05-15T12:43:25.8850029Z at NuGet.CommandLine.RestoreCommand.<ExecuteCommandAsync>d__30.MoveNext()<— 2017-05-15T12:43:25.8850029Z 2017-05-15T12:43:25.9129995Z ##[error]Error: d:\a_tool\NuGet\4.0.0\x64\nuget.exe failed with return code: 1 2017-05-15T12:43:25.9129995Z ##[error]Packages failed to restore 2017-05-15T12:43:25.9199979Z ##[section]Finishing: Restore NuGet Packages

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9

github_iconTop GitHub Comments

2reactions
infin8xcommented, May 31, 2017

Yep, you’ll want the build to run at Project Collection scope, not Project scope. Look for the “Build job authorization scope” dropdown in the Options tab of your build.

0reactions
tkrickcommented, Sep 19, 2019

@leonheess you are having perms problems or your builds are (via the build service)? Either way the feed you are accessing needs to give you or a group you belong to (or the build service if this is a build) permissions to read the feed. If you need more support look here: https://docs.microsoft.com/en-us/azure/devops/artifacts/feeds/feed-permissions?view=azure-devops . If still having an issue report your problem under Azure DevOps at https://developercommunity.visualstudio.com/content/problem/post.html?space=21

Read more comments on GitHub >

github_iconTop Results From Across the Web

NuGet-Based Package Manager is missing - Visual Studio
If NuGet-Based Package Manager doesn't appear, NuGet isn't installed. Follow the instructions below.
Read more >
NuGet Package Manager not installing packages
Go to the NuGet Package manager, try to install a package, sometimes the green tick will appear. But no files have been installed...
Read more >
Can't Install Nuget Package - Stack Overflow
First, you have to make sure the version of NuGet Package Manager for Visual Studio 2013 is the latest version 2.12.0.817, not the...
Read more >
NuGet Installer no longer works · Issue #4319 - GitHub
This hs stopped working randomly over the weekend, and I have tried the new version (1.0) of the NuGet Installer task, but still...
Read more >
NuGet Installer | TeamCity On-Premises Documentation
Restore Mode. Select NuGet.exe restore (requires NuGet 2.7+) to restore all packages for an entire solution. The NuGet.exe install command is ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found