Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2008: Can't connect to known good TFS 2010

A freshly installed TFS 2010 is at http://serverX:8080/tfs.

A Windows 7 developer machine with VS 2008 Pro SP1 and the VS2008 Team Explorer (no SP). The TFS 2008 Service Pack 1 didn't work for me - "None of the products that are addressed by this software update are installed on this computer."

The developer machine is able to browse the TFS site at the above URL.

The Issue is around trying to add the TFS server into the Team Explorer window in Visual Studio 2008. Here's a screenshot showing the error:

unable to connect to this Team Foundation Server. Possible reasons for failure include: The Team Foundation Server name, port number or protocol is incorrect. The Team Foundation Server is offline. Password is expired or incorrect.

The TFS server is up and running properly. Firewall ports are open, and is accessible via the browser on the dev machine!!

alt textlarger image

Question: how can you connect from VS 2008 Pro to a TFS 2010 server?

Resolution

Here's how I solved this problem:

Installations

  • install Visual Studio 2008
  • install VS 2008 Team Explorer as above.
  • re-install VS 2008 Service Pack 1
  • install the Visual Studio Team System 2008 Service Pack 1 Forward Compatibility Update for Team Foundation Server 2010 (VS90SP1-KB974558-x86.exe)

Config

  • when adding a TFS server to Team Explorer, you MUST specify the URL as such: http://[tfsserver]:[port]/[vdir]/[projectCollection]
  • in my case above, it was http://serverX:8080/tfs/AppDev-TestProject
  • you cannot simply add the TFS server name and have VS look for all Project Collections on the server. TFS 2010 has a new URL (by default) and VS 2008 doesn't recognize how to gather that list.
like image 953
p.campbell Avatar asked Dec 18 '09 00:12

p.campbell


People also ask

How do I connect project TFS to Visual Studio?

You do this by clicking View -> Team Explorer and click 'Connect to Project'. The next step is to add an Azure DevOps server, which is your TFS server URL. Once you see the below dialog, you need to click 'Add Azure DevOps Server'. Add in your TFS URL and click Add.

How does VS 2022 connect to TFS?

Follow below steps to add the TFS server: Manage Connections -> Connect to a project option in the Team Explorer (use View -> Team Explorer if not available) and connect to the project. Click Add Azure DevOps Server, input tfs server URL and choose Add.

Can we connect TFS to Visual Studio 2019?

Team Explorer connects Visual Studio 2019 and earlier to Team Foundation version control (TFVC) repositories, and to projects hosted on Azure DevOps Services or an on-premises Azure DevOps Server (formerly known as TFS). You can manage source code, work items, and builds.


2 Answers

Check out this article 'Connecting VS2008 to any TFS2010 Project Collection'.

The only catch here is that the author didn't mention that you need to install/reinstall Service Pack 1 'Microsoft Visual Studio 2008 Service Pack 1 (Installer)' for Visual Studio 2008 after installing Team Explorer 2008. This will take care of the invalid characters error message when trying to connect.

like image 115
Bert Avatar answered Oct 08 '22 09:10

Bert


I'm surprised no one here has mentioned the Visual Studio 2008 Service Pack 1 Forward Compatibility Update for Team Foundation Server 2010. I followed the directions above, but still was unable to connect; Installing the Forward Compatibility Patch finally let me connect.

like image 44
Chris Shaffer Avatar answered Oct 08 '22 11:10

Chris Shaffer