Caching problem in the July CTP of Visual Studio Team System with multiple Team Foundation Servers

Here at the DevLab we are using the July CTP to test some stuff out. We ran into an interesting problem when you are using multiple Team Foundation Servers and switch between them. As it turns out, the list of projects from the first server keeps showing up, regardless of the server you are connecting to.


After some investigation, Marcel and I found out that this is due to a bug in the caching mechanism. In the folder “Documents and SettingsLocal SettingsApplication DataMicrosoftTeam Foundation1.0Cache” there is an xml-file called ServerMap.xml.


This file acts as a pointer to the Cached data for each of the servers and maps a server name to a subdirectory containing the cached data. Unfortunately, something goes wrong with generating a unique directory name (probably because the Guid was not instantiated in the correct way). Therefore al servers point to the same directory.


To make it work you can do the following: edit the Xml file to point to unique directory names and create the corresponding subdirectories. Make sure the subdirectories are empty.


Now restart Visual Studio and everything will work again as expected for the servers you have added to the mapping file.