Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

How to move a project under source control from one TFS Server to another


Source: Microsoft Support

↑ Back to the top


RAPID PUBLISHING

RAPID PUBLISHING ARTICLES PROVIDE INFORMATION DIRECTLY FROM WITHIN THE MICROSOFT SUPPORT ORGANIZATION. THE INFORMATION CONTAINED HEREIN IS CREATED IN RESPONSE TO EMERGING OR UNIQUE TOPICS, OR IS INTENDED SUPPLEMENT OTHER KNOWLEDGE BASE INFORMATION.

↑ Back to the top


Action

You have Team Foundation Server 2005 or 2008, and you have a Visual Studio project under source control. You want to unbind it from source control on the current server and add it to source control on another server. After unbinding the project from source control on the first server, you try to add it to source control on the second TFS server.

↑ Back to the top


Result



You receive the following message:


The solution is in a directory mapped to team server http://<Original_TFS_server_name>:<port>.
Continuing will close the existing team server Target_TFS_Server and open team server http://<Original_TFS_Server_name>:<port>/ Continue?

↑ Back to the top


Cause

The VersionControl.config file located in the Team Foundation Cache folder contains information that references the original TFS Server.

↑ Back to the top


Resolution



1. Unbind the project from the first TFS server.
  • In Visual Studio, click the File menu, then click "Source Control", then click "Change Source Control".
  • In the resulting dialog, select the project and solution and click the Unbind button.


2. Exit Visual Studio.


3. Open Windows Explorer and navigate to the following folder on your local machine where Team Explorer is installed:


%userprofile%\Local Settings\Application Data\Microsoft\Team Foundation\1.0\Cache


on Windows Vista and Server 2008, this folder is:


%userprofile%/AppData\Local\Microsoft\Team Foundation\1.0\Cache


Rename the VersionControl.config to VersionControl.old.  You may want to clear out all the all the files and folders in the Cache folder.  It will not hurt anything, and may prevent future problems.


4. Restart Visual Studio  and connect to the new TFS server.


5. Add the solution to source control on the new TFS server.


You can find more information on this problem, as well as a workaround using the TF workspaces command in this blog post:


How to handle "The path X is already mapped in workspace Y"

↑ Back to the top


DISCLAIMER

MICROSOFT AND/OR ITS SUPPLIERS MAKE NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY, RELIABILITY OR ACCURACY OF THE INFORMATION CONTAINED IN THE DOCUMENTS AND RELATED GRAPHICS PUBLISHED ON THIS WEBSITE (THE “MATERIALS”) FOR ANY PURPOSE. THE MATERIALS MAY INCLUDE TECHNICAL INACCURACIES OR TYPOGRAPHICAL ERRORS AND MAY BE REVISED AT ANY TIME WITHOUT NOTICE.


TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, MICROSOFT AND/OR ITS SUPPLIERS DISCLAIM AND EXCLUDE ALL REPRESENTATIONS, WARRANTIES, AND CONDITIONS WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO REPRESENTATIONS, WARRANTIES, OR CONDITIONS OF TITLE, NON INFRINGEMENT, SATISFACTORY CONDITION OR QUALITY, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, WITH RESPECT TO THE MATERIALS.

↑ Back to the top


Keywords: kbnoloc, kbnomt, kbrapidpub, kb

↑ Back to the top

Article Info
Article ID : 957110
Revision : 3
Created on : 4/17/2018
Published on : 4/17/2018
Exists online : False
Views : 84