Not able to Map Workspace in local folder using VS 2017

admin

Administrator
Staff member
I was trying to map workspace, due to some issue I have canceled the process and deleted the entry from Manage Workspace.
But when I retried the process, I am getting below error

Code:
"The workspace [workspaceName];[Owner] already exists on computer [ComputerName]"

I have tried below things to resolve it

1) using VS Command prompt

Code:
First display list of workspaces for named computer giving workspace name and owner:

>tf  workspaces /computer:oldComputerName /collection:”http://devsrvr:8080/tfs/DefaultCollection”



To delete:

>tf workspace /delete WorkSpaceName;OwnerName /collection:”http://devsrvr:8080/tfs/DefaultCollection”

But listing command is not showing any workspace. so this option dosen't help me.
I got the help reference form <a href="https://tatvog.wordpress.com/2016/07/27/tfs-the-workspace-already-exists-on-computer/" rel="nofollow noreferrer">here</a>

2) Tried Repair Local Visual Studio TFS Workspace Mapping by clearing cache data from
Code:
%localappdata%\Microsoft\Team Foundation\5.0\Cache
. This option also didn't work for me. I am still getting same error. <a href="https://stackoverflow.com/questions/25429753/repair-local-visual-studio-tfs-workspace-mapping">Reference</a>

3) Checked
Code:
Control Panel &gt;&gt; User Account &gt;&gt; Mange Password
for deleted the enetries (It is used to work with older VS version). But this also didn't work.

Please let me know if any one know the resolution.