Link to home
Start Free TrialLog in
Avatar of lapucca
lapucca

asked on

Got mapping error when adding a solution to Teamfoundation

Hi, I'm using VS 2013 and online free VS online with source repository for projects.

I have a new solution/project on my local dev machine that I would like to add to the online vs repository, at myxxx.visualstudio.com
I first log in online and created a same name project there.  Then from VS2013, I right click to add solution to Source Control, I then got a error message, attached is the screen shot.

From the Team Explorer tab, I am able to select to connect to that project I created.  I then tried to add solution to Source Control again from the Solution Explorer but still getting the same mapping error.

Thank you.
TE-Mapping-error.png
Avatar of sarabande
sarabande
Flag of Luxembourg image

if you take the error message literally, the server complains that there is already a project from c:\projects in the workspace.

i would assume that creating a same name project at vs online was a mistake. if i am right, you have to delete the (empty) project at vs online and try again.

Sara
Avatar of lapucca
lapucca

ASKER

Hi,
i do not have duplicate project/solutions names  at VS Online or at my local Dev PC.  All my projects at my local pc are under in its own folder under the path c:\projects.  For example, c:\projects\solution1,  c:\projects\solution2,  c:\projects\solution3.....    At VS Online, I have only 3 projects and they're named completely different and of same names as the solution on my local pc.  

Also, I'm trying to map to the solution folder so why would it complain about it parent folder(c:\projects) was used?   Is there a place where I can find out which project/solution does VS think that parent folder is mapped?  Or which project is creating the problem?
Thank you.
ASKER CERTIFIED SOLUTION
Avatar of sarabande
sarabande
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of lapucca

ASKER

HI,
I deleted the new project in VSO.  In the Source Control Explorer, Under the Folder panel, the trees is labeled with myname.visualstudio.com\DefaultCollection as the root of the tree.  Under it has all my projects in VSO.  As i select each of the project, the panel to the right of the Folders panel, shows "Local Path: Not Mapped" for each of the project.  I would try to map it but I would get the same error message of mapping failed.  

I do not see the c:\\Projects folder anywhere in Source Control Explorer.  thank you.
If you edit the Workspace, what folders are mapped?  In the Source Code Explorer, there is a drop-down at the top, where you can edit the Workspace.  Drop down the list, and select Workspaces.  Click on the Edit button, so you can see the mappings.
it has all my projects in VSO
the new project as well?

if not can you 'add' it by source control explorer?

Sara
Avatar of lapucca

ASKER

Sara,
For all projects, including the new project, it says not mapped!

Bob,
Please see the attached screen shot.  I click the Map & Get button and got the Failed Mapping error.  Well, that was before I delete and project in VSO.  Now that VSO project is deleted, I can't even use that any more since there is no project in VSO to map using this.

Thank you.
Can you attach another screen shot of the Map & Get button, because I am not sure of the context?  Are you talking from the web browser, or through Visual Studio Team Foundation Source Control Explorer?
For all projects, including the new project, it says not mapped!
what does it say to c:\projects ? did you look to the workspace properties as Bob has asked for?

Sara
Avatar of lapucca

ASKER

Sorry, here is the attachment from the Configure WS.  This is from my local VS2013.

Bob, I looked at the dropdown in Source Control Explorer as you suggested.  It default shows my computer name and then under it in the dropdowns shows "Work Space".  Attached please see the Edit and Advanced screen form here.   There is no drive/path mapped to it.  i still don't see where is that c:\Project mapping error is coming from.

Why is that WS named after my computer name?  Should I add a new WS and path to the Edit screen?


thank you.
Configure-WorkSpace.png
Advanced.png
Edit-WS.png
Here is something to think about:

In Configure-Workspace.png, there is an alert that states, "You must configure your workspace mapping", which means that you haven't done it correctly

Attached is a snapshot of how my TFS is configured online.

User generated image
Avatar of lapucca

ASKER

Bob,
Should I create solution in the VSO first before I create the workspace?  I read a couple of Microsoft VSO tutorial and they're just confusing and didn't cover the workspace, projects creating in VSO, orders and steps and not very clear at all!
Thank you.
you should be able to add a proper mapping to the workspace by clicking into first line of the list 'Working Folders' and enter $/ into column 'Source Control Folder' and c:\projects into column 'Local Folder' (see the screenshot Bob has posted).

after that, the Source Control Explorer should make it possible to 'Get Latest' sources for all projects already in tfs or 'Add' and 'Check-In' new folders and files from your local path if they are not yet at the server. if there are projects at the tfs but are not up-to-date, it probably is easier to delete them at the tfs and add them again from local folder rather than to check-out each single file and update them.

Sara
Avatar of lapucca

ASKER

Do I need to first map for the DefaultCollection?  Or can I just map for each project under the default collection?  Where is the "clicking into first line of the list 'Working Folders' " that you are referring?

All my team projects are independent projects and they're all under the path c:\porjects with their own folders.  I tried selecting one project under the Folders panel, click the dropdown on top that is labeld Workspace and select the Workspace item.  I can either edit or Add and both gets the me the same error that c:\projects is already used by my computer and me.  i tried mapping each project to its C drive folder under c:]projects, I tried mapping the default collection to c:\projects...........  All of them gets me the same error message.
Where is the "clicking into first line of the list 'Working Folders' " that you are referring?
you have posted that screen as 'advanced.png' and Bob's last post also shows that dialog with the message 'Click here to enter a new workspace mapping ...'.

as already told, tfs works on folders and files and NOT on projects. so if you map your local c:\projects ALL projects below that folder can be saved there. a folder below c:\projects only could be mapped in a new workspace.

Sara
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of lapucca

ASKER

thank you.