VisualStudio2008: 无法连接到已知的良好 TFS2010

新安装的 TFS 2010位于 http://serverX:8080/tfs

一个带有 VS2008 Pro SP1和 VS2008 Team Explorer (没有 SP)的 Windows 7开发人员机器。TFS 2008服务包1对我来说不起作用——“这个软件更新所处理的所有产品都没有安装在这台计算机上。”

开发人员机器能够在上面的 URL 中浏览 TFS 站点。

问题 与在 VisualStudio2008中尝试将 TFS 服务器添加到 TeamExplorer 窗口有关。下面是显示错误的截图:

无法连接到此 TeamFoundationServer。失败的可能原因包括: TeamFoundationServer 名称、端口号或协议不正确。TeamFoundationServer 脱机。密码过期或不正确。

TFS 服务器已启动并正常运行。防火墙端口已打开,开发机器上的 可以通过浏览器访问也已打开! !

alt text 更大的影像

问题 : 如何从 VS2008Pro 连接到 TFS2010服务器?

决心

我是这样解决这个问题的:

装置

配置

  • 在向团队资源管理器添加 TFS 服务器时,必须的按如下方式指定 URL: http://[tfsserver]:[port]/[vdir]/[projectCollection]
  • 在我上面的例子中,它是 http://serverX:8080/tfs/AppDev-TestProject
  • 您不能简单地添加 TFS 服务器名称并让 VS 查找服务器上的所有项目集合。TFS 2010有一个新的 URL (默认情况下) ,而 VS 2008不知道如何收集这个列表。
57140 次浏览

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.

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.

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