分类: TFS2010-03-03 16:59 1239人阅读 评论(2) 收藏 举报
工作转移到新的TFS平台
打开source control在创建workspace时出错
信息为:
The Path <local path> is already mapped in workspace <machine name [old tfs server]>
很诡异的bug:)
Google搜索发现别人也遇到过相同的问题(估计是很多人遇到过)
参考Kevin Jones的博客文章,我们知道Client端的配置信息存储在
“C:/Documents and Settings/[user]/Local Settings/Application Data/Microsoft/Team Foundation/1.0/Cache/VersionControl.config”
不过让每个人修改config文件可不是个好的workaround

好在Buck Hodges给出了较为明确的解释:
The reason that you hit this is due to switching servers. Every server has a unique identifier, which is a GUID. Each local path can only be mapped in a single workspace. You originally had a workspace on the first server that used the local path you wanted to use with the new server. Let's say that's c:/projects. When you create the new workspace on the new server (GUID2) that you also want to map to c:/projects, the client sees that the old server (GUID1) is already using that local path. Since the IDs for the servers do not match, the client complains that c:/projects is already mapped to the old workspace on the old server.

并且有了明确的解决方法:
The solution is to clear the cache file, as described above. The problem will not occur if you upgrade the same server (i.e., you don't create a new server). 

You can use the command "tf workspaces /remove:*" to clear out all of the cached workspaces (it only affects the cache file). You can specify /s:http://oldserver:8080 to just clear out the workspaces that were on the old server. The MSDN doc for the workspaces command are at http://msdn2.microsoft.com/en-us/library/54dkh0y3.aspx
嘿嘿,打开VS2008的CMD,输入"tf worksapces /remove:* /s:http://oldserver:8080"
返回VS中的TeamExplorer发现还是不行
于是决定删除所有的cache中的workspace
"tf workspaces /remove:*"
再次返回TeamExplorer,一切OK了:)
 
多说一句,MSDN文档真的很烂,到现在了内容也不更新,还是要求输入/s:ServerName,
如果这样输入,会有个错误告诉你:URI非法,不能够识别URI的格式。
 
转自:http://blog.csdn.net/wenjie847/article/details/5342856

【转】删除已经存在的 TFS Workspace的更多相关文章

  1. How to fix TFS workspace mapping error in Jenkins

    Once you had update in TFS workspace for Jenkin TFS plugin, you might get error like bellow: [worksp ...

  2. 删除Myeclipse中废弃的workspace记录

    一个不用的workspace被我们删除后,但是在工作空间切换时File --> Switch Workspace,旧的 workspace 选项还会存在,看着很碍眼.删除遗留 workspace ...

  3. TFS Workspace 更改电脑名称

    不小心改了计算机名称 导致VS在保存项目的时候,包如下错误: 解决方法: 第一步: 第二步:输入如下片段 tf workspaces /updateComputerName:旧计算机名称  /coll ...

  4. IntelliJ IDEA连接TFS local workspace无法正常签入

    前几天为了便于在本地修改,将TFS workspace的类型从Server修改为Local.基于Visual Studio的开发正常没有问题,用IntelliJ IDEA时却提示以下错误: Error ...

  5. TFS工作区(Workspaces )命令

    Workspaces 命令 tf workspaces [/owner:ownername] [/computer:computername] [/server:servername] [/forma ...

  6. [转][TFS] 禁止默认允许多人签出和强制解除签入签出锁

    转自:http://blog.xieyc.com/tfs-disable-multiple-check-out-and-force-to-undo-locking/ | 小谢的小站 [TFS] 禁止默 ...

  7. TFS 自动同步Server 端文件的批处理命令

    TFS 自动同步Server 端文件的批处理命令 目前在我们组的工作中很多时候需要将TFS上Server端的代码自动无人值守的同步到本地中来, 找到了一些解决方案的资料http://bbs.scmro ...

  8. TFS命令tf:undo(强制签入签出文件)

    由于修改计算机名称或不同电脑上操作忘记签入,则需要强制签入文件 具体步骤如下: 1.在命令行中输入"cd  C:\Program Files\Microsoft Visual Studio ...

  9. 【网络收集】如何修改vs tfs的登录名和密码 .

    连接TFS时,如果本机保存了用户的网络密码,不会出现用户名和密码的输入框,若要更换TFS的用户名和密码,需按以下步骤操作:控制面板--->用户账号--->管理网络密码,此时会列出所有保存了 ...

随机推荐

  1. HDU 5265 pog loves szh II (技巧)

    题意:给一个数字序列,要求再其中找到两个数,其和再模p的结果是最大的,求此和. 思路:先将输入的元素模p,排序.结果可能有两种情况: (1)a+b大于p:肯定由两个最大的数之和来产生. (2)a+b小 ...

  2. ecshop 设置管理员

    <?php define('IN_ECS', true); require(dirname(__FILE__) . '/includes/init.php'); $admin_name=trim ...

  3. putty保持Session链接不断开的方法

    利用Putty登陆到远程主机后,如果长时间没有做任何操作,服务器会与本地客户端断开连接 假如设置了会话连接功能,就会每隔多少秒,客户端会发送一个空数据包给服务器,保持连接. 1. 打开putty.ex ...

  4. 【英语】Bingo口语笔记(19) - 如何用英语叙旧

  5. 【Python】Python重新学习

    <python基础教程(第二版)> http://www.cnblogs.com/fnng/category/454439.html 分片(后面取的是前一位) eg: >>&g ...

  6. T-SQL备忘(5):查看执行计划

    先理解几个概念:表扫描.聚集索引扫描.聚集索引查找.索引扫描.书签查找. [查看执行计划] 在理解概念之前先得知道如何查看执行计划—Ctrl+L.如下图: 注:SQL Server的执行计划是从右向左 ...

  7. RegEx正则表达式学习笔记

    一.实用的例子 public static void main(String[] args) { // 简单练习 System.out.println("-123".matches ...

  8. 使用java写入excel文件

    要操作excle文件,首先要下载jxl.jar文件,我用的版本是2.6.下载地址:http://www.andykhan.com/jexcelapi/download.html. Java Excel ...

  9. devexpress datagrid 与imageEdit以及如何存图片到数据库 z

    http://blog.csdn.net/haoyujie/article/details/41277703 首先建立了一个数据库的表,这个表中,有一个字段是image类型(SQL Server数据库 ...

  10. 页面性能测试&提升方式

    性能测试包括:web系统页面测试.web系统后台测试 2种方式来提升你的web 应用程序的速度: ● 减少请求和响应的往返次数 ● 减少请求和响应的往返字节大小. 详细的看此文http://www.5 ...