11
votes

I am using a machine that was set up for me by someone else. I already have the code for various projects/solutions locally. When I try from Source Control Explorer to "Get latest version" it tells me "the server folder is not mapped". Fair enough, I use the dialog to try to map it - and get "path already mapped in workspace"

It's driving me nuts - I hope it is something simple!

I have not got server access, if that matters.

3
Check that another workspace isn't already mapped to the same folder. File -> Source Control -> Advanced -> workspaces.Mike Cheel
The folder shown as already mapped in the Workspace I am already in. But still a "Get Latest Version" says it is not...kpollock
Is it mapped to you? What happens when you remove the mapping and reapply it? Are there any other mappings on that machine?Mike Cheel
There are other mappings (other solutions), Does that matter? It is a private workspace, so I guess it is mapped to me?kpollock
The folders can't overlap in the workspaces. This is most likely your problem.Mike Cheel

3 Answers

26
votes

You need to switch to the corresponding workspace, then Get latest version.

  1. Open Source Control Explorer
  2. Change workspace in Workspace box.
0
votes

If the directory is mapped by someone else as well you will not be able to remap it. You need to make sure the workfolder is mapped to that workspace and only mapped to you.

You could use tf workfolder command to display information about the mappings between your workspace folders and the folders on the server for Team Foundation version control.

Also give a try with below workaround:

  1. Try to copy your local source folder to another local path(back up), then delete this folder mappings.

  2. Then remove the Working Folders in your current Workspace(or delete Workspace entirely). Clear TFS and VS cache.

  3. Finally connect to TFS and re-mapping your TFS Source file to your original folder again.

0
votes

The workspace box is on the top right of the window and usually hidden even if your Source Control Explorer is very wide. enter image description here