7

Closed

You do not have access to TFS error tf30063 while installing package

description

On Windows 7 64 bit with TFS 2010 installed locally I get this error after downloading packages using NuGet. Then when I launch the Team Explorer tab I get a TF31003 error that I have not entered the necessary credentials or my user account doesn't have access to connect to TFS. I click on the "Use different credentials" link and try again. The only thing that works is closing Visual Studio 2010 and re-opening. Which ironically the solution is checked out and every thing is update to date.

Update: 3/3/2011 - Simply opening the Library Package Reference Dialog causes this to happen. No need to try and download a package. Added Screenshots

file attachments

Closed May 16, 2011 at 10:48 PM by Haacked
Fixed.

comments

Haacked wrote Feb 28, 2011 at 11:26 PM

Could you provide more details?

dbau56789 wrote Mar 1, 2011 at 8:31 PM

I have a Windows 7 64 bit machine that is part of a workgroup with TFS 2010 basic installed. I created a Windows Phone project in VS 2010 Ultimate and added the project to source control under TFS. At some point during development I came across the Coding4Fun CodePlex project and decided to add it to my project and try NuGet at the same time. The state of the project was 'checked in'. I went to Tools > Library Package Manager > Add Library Package Reference... After the package appeared to download I received a dialog with the first error message. The state of my projects had not changed. I went to the Team Explorer tab and received the second message and proceeded as above. I also had an instance of Expression Blend open for a page in the project. I could not act on the project files using TFS commands from Expression Blend either. I closed both applications, re-launched VS 2010 and opened the project. The project state was now 'checked out' and my references were added. I had another issue where my previously downloaded instance of the Silverlight Toolkit for Windows Phone was conflicting with the version added by the C4F package (the Toolkit I had downloaded from CodePlex had the Performance Progress Bar included and the C4F included version did not).

I decided to try and reproduce the TFS issue by downloading the latest Silverlight for WP Toolkit using NuGet. Same thing occurred as above. When I re-launched VS 2010 this time I went to check the packages installed and noticed that only the Toolkit was listed. This may be an unrelated issue, but I thought it was weird.

Haacked wrote Mar 8, 2011 at 10:43 PM

Please try out our latest unreleased build from our Continuous Integration server. http://ci.nuget.org:8080/repository/download/bt4/1401:id/VisualStudioAddIn/NuGet.Tools.vsix

We checked in some improvements to our TFS support and it may help this issue.

dbau56789 wrote Mar 9, 2011 at 1:48 AM

Much better. Thanks!

Verification Steps...
I was able to open the Add Library Reference window with my project in the "checked in" state. I updated one package and downloaded another. Went back to Visual Studio and my project was updated, I had no issues with TFS as I navigated the project. I went to Team Explorer all it appears fine there as well.

dbau56789 wrote Mar 9, 2011 at 1:51 AM

However, I tried to uninstall the package I added and I saw the message above in the output window and after that my connection to TFS was again hosed (technical term).

Haacked wrote Mar 22, 2011 at 10:05 PM

Are you sure that's due to NuGet? Is the solution under TFS source control?

dbau56789 wrote Mar 23, 2011 at 12:29 AM

The March 1 Post was pretty explicit about the steps to reproduce and the environment. I have tested this with a solution on the same machine not under TFS source control and have had no issues. Yes I am sure!!

dbau56789 wrote Mar 26, 2011 at 7:09 AM

After installing SilverlightToolkitWp using NuGet on a new project under TFS control, I went to the Team Explorer tab, clicked refresh and this is what is in the Output (General) window:

An unknown error has occurred integrating with your instant messaging client : TF30063: You are not authorized to access [TFSServer]\DefaultCollection..
An unknown error has occurred integrating with your instant messaging client : TF30063: You are not authorized to access [TFSServer]..

Right clicking on the solution in Solution Explorer and selecting Get Latest Version (Recursive)... results in the offending dialog popping up as described in the initial bug with the same error number.

Rhynier wrote Mar 29, 2011 at 6:42 PM

I also have a Windows 7 64 bit machine with VS 2010 Professional. Our company has a TFS 2010 server hosted in a domain environment and since my computer is not domain-joined I have the credentials to it stored on my computer in the credential manager. I have never had problems accessing TFS via a VPN connection, either from VS 2010 or the command line (using tf.exe).

I started using NuGet a week ago and ever since then I've been seeing these TF30063 errors and only restarting VS 2010 solves the problem Co-incidentally, accessing TFS via the command line still works without issue. I have noticed that this starts happening after using NuGet a few times (2 or 3, maybe) adding library references to projects under source control. I've had NuGet installed for over a month now but only since using it to add library references has this started happening.

Let me know if you want me to capture some logs or do some debugging to help track this down.

Haacked wrote Mar 29, 2011 at 10:51 PM

ok, Drew will follow-up and investigate.

sirkirby wrote Apr 1, 2011 at 8:41 PM

I was getting this issue too, but i'm not convinced that its nugets fault. I, like the other users, started encountering this constantly when using the console to deal with packages. But the real problem for me was that my tfs credentials were not properly being stored by windows and the tfs server was in fact sending an unauthorized exception. Even when you restart, it seems like its working for a few minutes and then...bam, error when i try do do something involving tfs...like updating a package. The issue came to the from for me because i just set up my new workstation and started fresh with win7 sp1 and ie9. In ie8, i would log in to tfs web and say "save my credentials". Once that was done, no more prompting in tfs and everything worked great. on my new setup with ie9, i did the same thing, however ie9 security is much tighter by default. Even though i saw my credentials saved in the user account control panel, it was still prompting every time. Unfortunately this is only visible when you visit the site through the browser, in vs2010 the error will eventually burp up as the tf30063. To ultimately get windows to stop prompting for the ntlm creds, i had to add my tfs site to the trusted sites list and drop security down to low for the trusted sites zone. Now it consumes my saved credentials and no more errors in vs2010 for nuget or other tfs activity...at least since i made the change early this morning.

Again, this is just what worked for me, but perhaps it will help someone else. If the issue comes back, i'll be sure to let you know via this thread.

sthenc wrote Apr 23, 2011 at 12:26 PM

Works like a charm, thnx.

sthenc wrote Apr 23, 2011 at 12:33 PM

I mean the unreleased build works like a charm. I had exactly the same issue like the initial poster.

s1mm0t wrote May 25, 2011 at 7:34 PM

I had the exact same problem after starting to use NuGet with a project that was already in TFS (2008). I carried out the steps that sirkirby describes above and this seems to have resolved my issue.

JasonMore wrote Jul 28, 2011 at 9:09 PM

Just FYI - I carried out the steps that sirkirby describes above and this seems to have resolved my issue.

ner1808 wrote Nov 24, 2011 at 10:11 PM

Why has this been closed. I have just installed NuGet today and get exactly the behaviour discussed here. I am running release 1.5.20902.9026.
Only way out is to restart visual studio.

janiukjf wrote Jan 24, 2012 at 8:19 PM

I've attempted to use the fix that sirkirby provided, but unfortunately I don't have access to add trusted sites due to a group policy on my machine. Is there any other option for resolving this issue? or am I out of luck?

joeld wrote Apr 13, 2012 at 8:25 PM

Per sirkirby's comment above..."To ultimately get windows to stop prompting for the ntlm creds, i had to add my tfs site to the trusted sites list and drop security down to low for the trusted sites zone. Now it consumes my saved credentials and no more errors in vs2010 for nuget"

This worked perfectly!!! Thanks!