views:

3577

answers:

6

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.
+9  A: 

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.

Bert
Thanks Bert; I had not seen that blogpost. I will update the question with the things-to-do for future searchers.
p.campbell
A: 

Thanks!

I read the documentation, I added the "/tfS" but I did not realize that I also had to add "/tfs/tpc-name" until I read your post.

/Gunnar

Gunnar
A: 

Thanks ... after reading several posts about reinstalling the VS 2008 SP1 and reinstalling the power tools and finding and installing the VS 2010 compatibility layer, still nothing worked. Thankyou Microsoft! I wish I had read this 2 days ago, all that was required was to add the project name as you suggested. I was able to get this information from browsing the server url and noticing it in the drop-down = http://myserver:8080/tfs/theprojectname .... Walla!

Eric Pahl
A: 

you de man! read loads of crap all over the place; your post solved my problem in about 4 minutes flat.

respect and thanks.

passerby
A: 

After adding the following, I can connect to TFS 2010. One catch though, there is no option to check-in or checkout my SQL 2008 Reports.

http://myserver:8080/tfs/theprojectname ....

clive
+1  A: 

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.

Chris Shaffer
@Chris: Thanks for the reminder. Updated the my 'resolution' in the question.
p.campbell