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

Visual Studio-2008Tfs

Visual Studio-2008 Problem Overview


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 text larger image

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

Resolution

Here's how I solved this problem:

Installations

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.

Visual Studio-2008 Solutions


Solution 1 - Visual Studio-2008

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.

Solution 2 - Visual Studio-2008

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.

Solution 3 - Visual Studio-2008

To Connect Visual Studio 2008 to a TFS2010 server this is what it took for me to connect: Install TFS plugin; install VS2008SP1; install TFS compatibility update. Before I did this I was getting an error tf3002 Here are some details:

  1. Install Team Explorer 2008 from http://www.microsoft.com/downloads/en/details.aspx?FamilyID=0ed12659-3d41-4420-bbb0-a46e51bfca86. It's an iso file so I used MagicISO to mount it. After this when the source control options (Tools --> Options --> Source Control) will have TFS in drop down in addition to VSS.

2 Install VS2008SP1 - Visual Studio 2008 Service Pack 1 from http://www.microsoft.com/downloads/en/details.aspx?FamilyId=FBEE1648-7106-44A7-9649-6D9F6D58056E

3 Install Compatibility Update - Visual Studio Team System 2008 Service Pack 1 Forward Compatibility Update for Team Foundation Server 2010 from http://www.microsoft.com/downloads/en/details.aspx?FamilyID=cf13ea45-d17b-4edc-8e6c-6c5b208ec54

Also when I opened the Connect to TFS window (Tools --> Connect to TFS). After I entered in the complete path such as http://YourServerName:8080/so/TFSProjects including the http://. Also I noticed that when it's installed correctly on the Add TFS window when the http:// is typed in the Port # txtbox will be disabled. This question helped me & I Hope this answer helps.

enter image description here

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionp.campbellView Question on Stackoverflow
Solution 1 - Visual Studio-2008BertView Answer on Stackoverflow
Solution 2 - Visual Studio-2008Chris ShafferView Answer on Stackoverflow
Solution 3 - Visual Studio-2008CattoView Answer on Stackoverflow