Getting "Failed to create mapping" when adding a solution to TFS source control

Viewed 19236

I've created a new Team Project in TFS, but when I try to add my solution to it I get:

'Failed to create mapping

Cannot map server path, $/Finance/MyApp, because it is not rooted beneath a team project.'

I can't find anything on google or here that looks remotely like this problem.

9 Answers

Had the same issue when upgrading project to TFS 2010 from 2008. The solution was to delete the vsssc file in the root of the project folder and re-add it

I had the same problem. My solution in VS2017:

  • Open Team Explorer tab
  • Select Source Control Explorer
  • Right click on the top level folder for the project and select "Advanced/Remove Mapping"
  • Remove the Mapping
  • Right click on the top level folder for the project and select "Advanced/Map to Local Folder"
  • Browse to the top level folder with the source code (You may need to adjust the path you selected. It may append a folder name to the end)
  • Click "Map"
  • Answer "Yes" to Message Box "Newly mapped items will not be downloaded until you execute a get. Do you want to get $/YourFolderName now?"

That should do it!

Related