Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TF30063: You are not authorized to access Collection. Nuget and Tfs conflicting

Latest Comment

I believe my problem occurs when using Nuget, however, if you are reading because of the TF30063 error. Have a look at the answer I provided and accepted.

Original Post

I am getting this error message when I try to check out. This happens randomly and can occur even if minutes ago the same instance of visual studio allowed me to check something else out for edit. enter image description here

The current workaround is to reopen VS2010.

Using W7x64, vs2010 ultimate with TF2010 and sql2008 on my local dev machine. I am not part of a domain. I am the administrator of this computer.

Additional 2011-08-09

When the problem occurrs, I "close solution" under file. And then reopen the solution. I then get a uid/pwd box. I put my admin uid/pwd into it and then get a further error message. Again, closing vs2010 and reopening solves the issue.

enter image description hereenter image description here

Additional: 2011-08-30

I believe this has to do with nuget. I have provided an answer and so far after many months I have not had a TFS error. Where I should have had an error given the types of operations I have been performing which were identical to the scenarios making it fail.

like image 333
Valamas Avatar asked Jul 12 '11 23:07

Valamas


People also ask

How to fix TF30063 error you are not authorized to access Team foundation service error?

So, for this you can clear the TFS cache and reconnect the TFS. You can clear TFS's cache from following location, just change the user name as per your system. Once cache will delete, probably TFS will ask for credential to reconnect. You need to provide valid credentials and TFS will work.


2 Answers

I noticed that the problem occurred mostly after i installed a nuget package. After adding a nuget package i found that I could not check out. Restarting Visual Studio helped.

Based on this discussion:

http://nuget.codeplex.com/discussions/254328

i used this solution which appears to be working:
(I have copied the solution here if ever the webpage disappears)

Control Panel / Internet Options / Security Tab Select "Local Intranet" Click Sites button Click Advanced Button Add your TFS server http address to the list. e.g. http://tfs Restart Visual Studio 

Source: http://blog.rthand.com/post/2011/08/26/Fixing-combination-of-NuGet-and-Team-Foundation-in-workgroup-configuration-401-Unauthorized.aspx (Go straight down to The Solution half way down).

Don't let the Internet Options part fool you. I do not use Internet Explorer and this solved my issue.

like image 173
Valamas Avatar answered Oct 04 '22 16:10

Valamas


I found this issue and the accepted solution didn't work for me. For me the problem occurred when trying to add a NuGet package to my project (through either the console or the GUI) and it would show the login prompt but not accept my user/password. It would try around 4 times and then fail and roll back the installation.

It turns out for me the issue was that I had Fiddler open and as soon as I closed it (to undo the proxy settings) I was then able to install the package without any issue. I didn't even have to restart Visual Studio to get it working.

Just thought I'd share this for the next person who comes across this issue.

like image 35
James J. Regan IV Avatar answered Oct 04 '22 17:10

James J. Regan IV