TF30063 error while updating NuGet packages

A customer started using the Ordina Team Foundation Server to host their project. Everything seemed to work fine. They can connect, check-in code and get the latest changes.
However, they could not update NuGet packages! When running the command

Update-Package

from the NuGet console, an error popped up:

TF30063: You are not authorized to access collection

The Package Manager Console shows the same error, mentioning something about access denied errors.

Fixing TF30063: You are not authorized to access collection

The problem has to do with security restrictions at my customer. They have strict policies for which websites can be accessed. The solution for this NuGet error is simple:

Add the URL of your TFS server to the trusted sites list in Internet Explorer and drop the security for the trusted sites zone to low.

Add TFS server to trusted sites

And that’s it. Visual Studio will now connect to NuGet and update your packages without any issues.

Wouter de Kort works as a lead architect and consultant. He helps organizations stay on the cutting edge of software development. Wouter focuses on DevOps. He loves solving complex problems and helping other developers to grow. Wouter authored the book DevOps on the Microsoft stack and a couple of other books. Wouter is a Microsoft MVP and an ALM Ranger. You can find him on Twitter (@wouterdekort), on his blog at wouterdekort.com and at the various conferences where Wouter speaks.

Share

Leave a Reply

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

Post comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.