I had this issue in Mac machine and using Eclipse for connecting with TFS,
I tried uninstalling eclipse, clearing eclipse cache/files from all these below folders
~/Library/Preferences/
~/Library/Application Support/
~/Library/Caches/ Folders
Still the issue was there & it showed below errors
An internal error occurred during: "Reconciling local TFS workspace".
com.microsoft.tfs.core.clients.versioncontrol.exceptions.PathTooLongException:
ExceptionMessage="The specified path, file name, or both are too long.
The fully qualified file name must be less than 260 characters, and
the directory name must be less than 248 characters."
An internal error occurred during: "Refreshing TFS Repository
information for http://tfs.xyzcompanyname.com:7071/tfs/DN/".
com.microsoft.tfs.core.clients.versioncontrol.exceptions.PathTooLongException:
ExceptionMessage="The specified path, file name, or both are too long.
The fully qualified file name must be less than 260 characters, and
the directory name must be less than 248 characters."
Then I followed and looked for the below file/folder
/Users/xyzusername/Library/Application Support/Microsoft/Team Foundation/4.0/Cache/
VersionControl.config
This file was always showing the Mapped Paths even if I removed them early. I think this is taking from Mac's cache or from some other loaction.
Then I followed the below steps to remove the workspace association and it worked!!
What you have todo is just Open Team Explorer => go to TFVC Pending changes => Click on Actions => Manage Workspace => Add a new Workspace & remove the existing one (Note: If you have any changes that are still there at your local machine you might want to copy them to a different location, this activity will remove any pending tracking in local). I am attaching the screenshots so that it will be helpful for someone who got a similar issue.
Step 1:
Step 2:
Step 3: