TFS Error : Workspace Already Exists Error

 

  If you ever have the joyous experience by migration steps of TFS environment and  Visual Studio 2010 and you are using Team Foundation Server as your source control system, you may encounter a workspace error message akin to “workspace already exists on computer”.

This is sometimes due to the cached settings on your system. To clean this up, try the following:

SET TFAppData=%USERPROFILE%\Local Settings\Application Data\Microsoft\Team Foundation

IF EXIST "%TFAppData%\3.0\Cache" rd /s /q "%AppDataTF%\3.0\Cache" > NUL
tf workspaces /s:http://mytfserver:8080/

Note: “tf.exe” must be in your path.  If not, just add the full path to the .exe.  Also, this currently shows cache paths for Visual Studio 2005, 2008, and 2010

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s