Chris Via

I'm getting the following error when trying to add a new solution to Source Control. I've found a couple of other forum topics with the same issue and tried to follow, but nothing seems to work. i've removed workspaces and so on.

ERROR: Failed To Create Mapping. The working folder D:\Development is already in use by another workspace on this computer.

Thanks!



Re: Team Foundation Server - Version Control Failed to create mapping

Aaron Hallberg - MSFT

Moving this thread to the Version Control forum...

-Aaron






Re: Team Foundation Server - Version Control Failed to create mapping

Ed Hintz

TFS believes there is an existing mapping for D:\development in a different workspace than the one specified in Add Solution to source control dialog.

Check each of workspaces you have this machine to see if it is already mapped. If you believe it is not mapped, open the following file:

C:\Documents and Settings\<your-login-name-goes-here>\Local Settings\Application Data\Microsoft\Team Foundation\1.0\Cache\VersionControl.config.

Look for the path d:\development or d:\ to determine which workspace TFS thinks d:\development belongs to.

If you believe this cache file is incorrect, then close the versioncontrol.config file and run the following on the command line:

tf workspaces /s:<your-team-foundation-server-uri-goes-here>

Use the uri value in the ServerInfo tag inside VersionControl.config for your-team-foundation-server-uri-goes-here.

The above command will update the local cache with what is on the server.

Try to add the solution again.

Ed

http://blogs.msdn.com/edhintz






Re: Team Foundation Server - Version Control Failed to create mapping

Chris Via

I removed a mapping from this file from an old project that has been deleted. Now, I am trying to
Get Latest Version" on the TFSBuild.proj file so I can edit the BuildType for the new solution. When I try to get latest on the TeamBuildType (this is the first time I'm doing this), I get an error that "The working folder D:\Development is already in use by another workspace."




Re: Team Foundation Server - Version Control Failed to create mapping

Richard Berg MSFT

The file you edited is just a cache. You need to update the server. tf workspace /delete <oldworkspace> /s:<server>