Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TF31002: Unable to Connect to this Team Foundation server

I have a server that the team foundation server is installed on. I can connect to TFS from several computers, but I can't connect to its from my laptop through internet. I can connect to it from web, but I can't via team explorer.

Indeed I can't add server via team explorer in visual studio, and I receive following error.

TF31002 Error message

I have connected to this server for 3 months. Then I deleted the team project from server and worked offline. Now I want to add my solution to TFS, but I can't connect to it.

like image 651
Amir Abolhasani Avatar asked Mar 19 '13 22:03

Amir Abolhasani


People also ask

How do I connect Visual Studio code to Team Foundation Server?

To go to TFS source control in your visual studio code, you can use the press Ctrl + Shift + G or click this icon in your left pane.

Is Team Foundation Server going away?

On September 10, 2018, Microsoft renamed Visual Studio Team Services (VSTS) to Azure DevOps Services. With Azure DevOps Server 2019, Microsoft is renaming Visual Studio Team Foundation Server to Azure DevOps Server. For more information on this change, see Introducing Azure DevOps Server.


2 Answers

Flushing TFS cache fixed this error for me. To do so;

Delete the contents from the following folders

  • C:\Users\<>\AppData\Local\Microsoft\Team Foundation
  • C:\Users\<>\AppData\Local\Microsoft\VisualStudio
  • C:\Users\<>\AppData\Local\Microsoft\VSCommon

Go to the Visual Studio IDE folder in command prompt and run the following command "devenv /resetuserdata" from the Visual Studio IDE folder.

  • Typical location for 64 bit: C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE
  • Typical location for 32 bit: C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE

Also, not sure if it made a difference but I also deleted this registry key;

  • KEY_CURRENT_USER\Software\Microsoft\VSCommon\12.0\ClientServices\TokenStorage

Source and more details here

like image 149
n00b Avatar answered Oct 06 '22 19:10

n00b


If you are using an older version of VS than TFS, make sure you install the forward compatibility packs.

like image 44
gregpakes Avatar answered Oct 06 '22 17:10

gregpakes