Most of our projects are in Visual Studio 2008. But due to the new features introduced in TFS 2010, we were forced to move to TFS 2010 with VS 2008 projects. Here is where the major issue comes: how to access TFS 2010 from VS 2008?
We faced this issue and came to know about the Visual Studio 2008 Forward Compatibility Update. We went ahead and installed it from http://www.microsoft.com/downloads/en/details.aspx?FamilyID=CF13EA45-D17B-4EDC-8E6C-6C5B208EC54D&displaylang=en.
Next, we tried to connect to TFS 2010 with a TFS name:
Add Team Foundation Server
This will throw the following exception:
This is because Visual Studio 2008 is not able to identify the server instance or the default collection associated with the TFS 2010 project.
After some research, we found that we needed to specify the URL of the project including the server instance (by default, tfs) and project collection.
Add Team Foundation Server
This will throw the following error
“TF30335: The server name cannot contain the characters ‘/’ or ‘:’, or start with
‘http://’ or ‘https://’. If the server name is an IPv6 address,
it can contain the character ‘:’ only if the full name is enclosed by square brackets.”
From a lot of research, we came across a solution for the above issues through Registry edit.
- Go to the Registry location
- Right click on Servers and select New -> string value.
- Name the string entry with your TFS instance name (any name to represent TFS in VS 2008).
- Either double click on the string, or right click and select Modify to enter the value for the string.
- Enter the server URL as value.
Here, mytfs -> TFS server name. tfs -> TFS instance name. myprojs -> project collection.
- Close the Registry.
- Re-open Visual Studio 2008. Connect to TFS using Tools-> Connect to Team Foundation server.
Now, we face the next issue:
“TF31001: Team Foundation cannot retrieve the list of team projects from Team Foundation Server mytfs. The Team Foundation Server returned the following error: Team Foundation services are not available from the server."
Technical information (for administrator):
TF253022: You must update your client with the Forward Compatibility Update in order to connect to the Team Foundation Server that you selected. To obtain this update, go to the Microsoft Web site: http://go.microsoft.com/fwlink/?LinkId=166481.”
This is totally confusing. From Control Panel, we can see that we have installed the Forward Compatibility Update. But still it is not working.
Here is the solution for the whole issue:
- Install the software in the following order:
- VS 2008
- Team Explorer
- VS 2008 SP1
- Compatibility Update
Ensure that you install VS 2008 SP1 only after Team Explorer. If we install Team Explorer after VS 2008 SP1, then the version of Explorer is 9.0.2xxxx. If it is in the correct order, then the version will be 9.0.3xxxxx. You can verify the versions from open Visual Studio 2008 -> Help-> About Microsoft Visual Studio-> Select the Team Explorer.
Do the Registry entry specified above.
Re-open Visual Studio 2008 and connect to TFS 2010.