Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

tfs

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.

like image 648
Chris Surfleet Avatar asked Aug 20 '10 10:08

Chris Surfleet


People also ask

How do I make a map in TFS?

From Visual Studio, go to the Team Explorer Connect page (Keyboard: Ctrl + 0, C) and then connect to the project. (If the project you want to open is not listed, choose Select Projects and then connect to the project.) Map the project to a folder on your dev machine. Map the workspace and get your code.


3 Answers

I had this issue when using Microsoft's Team Foundation Service from Visual Studio 2012. I had just created the new team project via the TFS website. Although I could see my new project in the 'add solution' window, I got the error the OP reported.

I had to go into the "Team Explorer" window, then into "Connect to Team Projects" and tick the new project. Then I was able to add my solution to the team project.

like image 196
Daz Avatar answered Sep 19 '22 13:09

Daz


Is Finance a team project for you?

If not, you can clear the mappings for the workspace or even just delete your workspace. http://msdn.microsoft.com/en-us/library/54dkh0y3(v=VS.100).aspx

like image 41
Ewald Hofman Avatar answered Sep 20 '22 13:09

Ewald Hofman


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

like image 43
Tjaart Avatar answered Sep 21 '22 13:09

Tjaart