Not mapped but still mapped
-
Wednesday, March 07, 2012 4:45 PM
I had mapped a directory to my local drive. But now a day later, it says not mapped and hence I am unable to check out files. However, when I try to map it again, it says it is already mapped. I’ve tried the following steps, but they don’t resolve the problem (ie when trying to map it, it says its already mapped)
Delete the local directories and file.
File -> Source Control -> Workspaces …. I click the Edit button and remove the directory from the Working Folders list.
Remove the Workspace entirely, then Add the workspace back
Disconnect from the Server and then reconnect
Remove the Server then add it back
Can anyone suggest what else to try?
All Replies
-
Wednesday, March 07, 2012 5:20 PM
Is that directory mapped to another project, workspace, team project or tfs server?
Note - if the directory is mapped by some one else as well you will not be able to remap it.
Please remember to mark the replies as answers if they help.
Blog: http://geekswithblogs.net/TarunArora
Subscribe in a reader -
Wednesday, March 07, 2012 5:54 PM
It is not mapped to anything else. "Remove Mapping" is not displayed in the menu when I right click on the directory in TFS.
I just tried deleting VersionControl.config, but still the same problem. That file now looks like this (I changed the actual info for security reasons):
<VersionControlServer>
<Servers>
<ServerInfo uri="http://aaaaa1.bbb.cd:8080/tfs/projects" repositoryGuid="eeeeeeee-ffff-gggg-hhhh-1234567890">
<WorkspaceInfo name="AAAAAAAAAA" ownerName="BBB\1111" computer="AAAAAAAAAA" comment="" LastSavedCheckinTimeStamp="0001-01-01T00:00:00Z">
<MappedPaths />
</WorkspaceInfo>
</ServerInfo>
</Servers>
</VersionControlServer>Previously there were mapped paths like so:
<MappedPath path="C:\MyCompany\MySourceCode" />
but no longer. Nonetheless, it still thinks it is mapped.
- Edited by falsedmitri Wednesday, March 07, 2012 5:59 PM
-
Thursday, March 08, 2012 3:22 PM
Please run the workfold command and share a screen shot with us.
C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE>tf.exe workfold "C:/blah/path of drive you had mapped" http://msdn.microsoft.com/en-us/library/0fa04bx6(v=vs.100).aspx
Please remember to mark the replies as answers if they help.
Blog: http://geekswithblogs.net/TarunArora
Subscribe in a reader -
Thursday, March 08, 2012 3:27 PM
Sample screen shot https://skydrive.live.com/#cid=61D0A67D27B527D3&id=61D0A67D27B527D3%21452
Please remember to mark the replies as answers if they help.
Blog: http://geekswithblogs.net/TarunArora
Subscribe in a reader -
Thursday, March 08, 2012 10:06 PM
Thanks for your replies, I really appreciate your help.
Executing that command it says:
There is no working folder mapping for C:\MyCompany\MySourceCode
So there's no memory of it there. Are there registry entries associated with the mappings?
- Edited by falsedmitri Thursday, March 08, 2012 10:07 PM
- Edited by falsedmitri Thursday, March 08, 2012 10:08 PM
- Edited by falsedmitri Thursday, March 08, 2012 10:13 PM
- Edited by falsedmitri Thursday, March 08, 2012 10:18 PM
-
Friday, March 09, 2012 3:06 AMModerator
Hi Falsedmitri,
Thanks for your post.
Try to copy your MySourceCode folder to another local path, then delete this folder under C:\MyCompany\. And remove the Working Folders in your current Workspace(or delete Workspace entirely).
Clean the Cache manually:
- Clean the Cache folder on client computer. The folder path is: C:\Users\username(Team Explorer user name)\AppData\Local\Microsoft\Team Foundation\3.0\Cache(os: Windows Server 2008 R2)
- Clean the Cache folder on Server machine. The folder path is: C:\Users\username(Web access user name)\AppData\Local\Microsoft\Team Foundation\3.0\Cache(os: Windows Server 2008 R2)
- After cleaned, on Server machine, click Startand select Run… to open the dialog box, then input iisreset.exeand click OK, wait it run completely.
Then connect to TFS and re-mapping your TFS Source file to C:\MyCompany\MySourceCode folder again.
If you have any further research of this issue, please share your experience here.
John Qiao [MSFT]
MSDN Community Support | Feedback to us
-
Friday, March 09, 2012 3:26 PM
Thanks for your reply. The contents of my Cache directory are shown below. By "Clean the Cache folder", do you mean delete all files and directories shown here?
03/09/2012 08:39 AM <DIR> .
03/09/2012 08:39 AM <DIR> ..
03/06/2012 08:54 AM <DIR> bba3fc6e-c136-4634-a47d-edc87b01eea6
03/09/2012 07:03 AM <DIR> bba3fc6e-c136-4634-a47d-edc87b01eea6_http
03/05/2012 05:24 PM <DIR> cf2a187d-ab13-46f0-85e7-29fbe059b28a
03/05/2012 05:24 PM 518 LocationServerMap.xml
03/06/2012 08:54 AM 210 ServerMap.xml
03/08/2012 03:40 PM 601 UISettings.Config
03/09/2012 07:33 AM 784 VersionControl.config
03/07/2012 10:39 AM 758 VersionControl.config.bak
03/08/2012 08:10 AM 37 WorkItemHistory_bba3fc6e-c136-4634-a47d-edc87b01eea6.config
7 File(s) 2,908 bytes
5 Dir(s) 220,703,760,384 bytes free
- Edited by falsedmitri Friday, March 09, 2012 3:37 PM
- Edited by falsedmitri Friday, March 09, 2012 3:39 PM
- Edited by falsedmitri Friday, March 09, 2012 3:42 PM
- Edited by falsedmitri Friday, March 09, 2012 3:42 PM
-
Monday, March 12, 2012 1:30 AMModerator
Hi Falsedmitri,
Thanks for your reply.
Yes, you can try to delete that all files which under …3.0\Cache folder.
John Qiao [MSFT]
MSDN Community Support | Feedback to us
-
Wednesday, March 14, 2012 6:27 AMModerator
Hi Falsedmitri,
Have you tried that?
If you have any further research of this issue, please share your experience here.
John Qiao [MSFT]
MSDN Community Support | Feedback to us
-
Thursday, March 15, 2012 4:12 PMI haven't tried it yet. We are about to do a release, and I don't won't to mess anything up. I will try it when the release it out.


