Team Build Error: The Path … is already mapped to

2019-01-04 17:14发布

When creating a new build in Team Foundation Server, I get the following error when attempting to run the new build:

The path C:\Build\ProductReleases\FullBuildv5.4.2x\Sources is already mapped to workspace BuildServer_23.

I am unable to see a workspace by that name in the workspaces dialog.

20条回答
smile是对你的礼貌
2楼-- · 2019-01-04 17:54

If you don't have permissions on the server to delete other people's workspaces, you can just change the name of the build definition. TFS will create a new workspace and map it to "C:\Build\ProductReleases\new build name here\Sources".

查看更多
3楼-- · 2019-01-04 17:54

I got same issue in Visual Studio 2017 and TFS 2017. DefaultCollection must be mapped first to you local path. Somehow this step was skipped and I got only MyFirstProject mapped.

enter image description here

All you need to do is:
- 1. Go to your TFS web page and remove the project from the server.

enter image description here

- 2. Remove the project from your local "Worksapces"

enter image description here

- 3. Go to "Manage Connections" which will refresh your Home page in TeamExplorer.

enter image description here

- 4. You will get Configuration page which will allow you to setup root path to your DefaultCollection.

enter image description here

- 5. You should get message that it been done successfully. Now you can create your project.

enter image description here

It's important to map root of your collection to your workspace first and then map a new project.

查看更多
Evening l夕情丶
4楼-- · 2019-01-04 17:56

Use the command line utility TF - Team Foundation Version Control Tool (tf).

You can get a list of all workspaces by bringing up a Visual Studio Command Prompt then changing to your workspace folder and issuing the following commands:

C:\YourWorkspaceFolder>tf workspaces /owner:*

You should see your problem workspace in the list as well as it's owner.

You can delete the workspace with the following command:

C:\YourWorkspaceFolder>tf workspace /delete /server:BUILDSERVER WORKSPACENAME;OWNERNAME
查看更多
啃猪蹄的小仙女
5楼-- · 2019-01-04 17:56

If applicable, you can also clone the build definition and change its name. This workded for me.

查看更多
祖国的老花朵
6楼-- · 2019-01-04 18:00

We had the same problem but deleting the workspace's from the TFS server did not work. (I should mention that I grabbed my colleagues VM that was already set up with his credentials.)

For me this worked: http://blogs.msdn.com/b/buckh/archive/2006/09/12/path-is-already-mapped-in-workspace.aspx

I just went into the : ...\Local Settings\Application Data\ made a search for VersionControl.config, opened up the folder that contained this file and deleted all of it's contents.

Previous to that I tried manually editing the file but it continued with the same error message.

I hope this helps.

查看更多
欢心
7楼-- · 2019-01-04 18:00

Simplest way to do this is to go to your AppData and delete the TFS cache (depending on the version 3.0 or 4.0)

C:\Users{UserName}\AppData\Local\Microsoft\Team Foundation\3.0\Cache or C:\Users{UserName}\AppData\Local\Microsoft\Team Foundation\4.0\Cache

查看更多
登录 后发表回答