views:

5531

answers:

2

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.

+12  A: 

Use the command line utility tf.

You can get a list of all workspaces by bringing up a Visual Studio Command Prompt and using the following command:

c:\>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:\>tf workspace /delete /server:BUILDSERVER WORKSPACENAME;OWNERNAME
NotMyself
I'm getting "Unable to determine the source control server." when running tf workspaces on the build server. Any ideas how to fix this?
Corvin
Corvin: run the command from within the folder that is part of the workspace
Rajah
Leave off the /server argument, it's not needed. Otherwise good answer!
techphoria414
+7  A: 

I received this error, which was caused by having two build definitions that pointed to the same source. The issue was that I used a static build directory in the Build Agent.

This forum post describes my issue and resolution exactly: http://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/60a4138a-9b28-4c46-bdf4-f9775ce43c3e/

YeahStu