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
lapuccaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sarabandeCommented:
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
0
lapuccaAuthor Commented:
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.
0
sarabandeCommented:
i didn't say that the project is duplicate, but that you may not create the solution folder online, since the tfs doesn't care for projects but only for folders and workspaces. delete the newly created folder in vs online because of that.

if you already have a workspace pointing to c:\projects and want to use that workspace for your new project as well, you don't need to create a new solution in tfs. instead, open the source control explorer (from Team Explorer View in visual studio), select folder c:\projects in the left side tree, check whether the correct workspace is chosen in the menu area, right-click and choose 'add items to folder'. then add your new solution folder and sub folders and files to source control and check them in what should solve the problem.

Sara
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

lapuccaAuthor Commented:
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.
0
Bob LearnedCommented:
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.
0
sarabandeCommented:
it has all my projects in VSO
the new project as well?

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

Sara
0
lapuccaAuthor Commented:
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.
0
Bob LearnedCommented:
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?
0
sarabandeCommented:
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
0
lapuccaAuthor Commented:
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
0
Bob LearnedCommented:
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.

Visual Studio Online TFS Configuration
0
lapuccaAuthor Commented:
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.
0
sarabandeCommented:
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
0
lapuccaAuthor Commented:
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.
0
sarabandeCommented:
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
0
Bob LearnedCommented:
Here is my suggestion--map the root of the TFS team project to a single folder on the target drive, and make sure that it is recursive.  This way all the projects will use the same mapping, and just become sub-folders to the root mapping.  

Try reading through this blog entry:

Mapping to a TFS Source Control Folder
http://blogs.objectsharp.com/post/2012/11/20/Mapping-to-a-TFS-Source-Control-Folder.aspx

So often I see developers mapping to their local folder from the middle of the source control tree to a folder on their desktop, then another folder to a different location. It gets very messy very quickly.

Some people may like to map folders this way, however I prefer a cleaner mapping implementation. When working on a team I would rather have the same folder structure as the server and everyone else on the team. Also it’s nice not to have to map each app I work on. I would rather just map once and be done with it.
0
lapuccaAuthor Commented:
thank you.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Version Control

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.