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

Posted by p.campbell on Stack Overflow See other posts from Stack Overflow or by p.campbell
Published on 2009-12-18T00:18:20Z Indexed on 2010/05/26 9:21 UTC
Read the original article Hit count: 373

Filed under:
|
|

A freshly installed TFS 2010 Beta 2 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 Beta 2 server?

Resolution

Here's how I solved this problem:

  • installed VS 2008 Team Explorer as above.
  • re-install VS 2008 Service Pack 1
  • 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.

© Stack Overflow or respective owner

Related posts about visual-studio-2008

Related posts about tfs