Geeks With Blogs
Clara's Notes on Technology Notes to me and the world

 

I am just reposting this thread from a MSDN forum since it seems to be unavailable. It was very useful when I was having trouble with my folder mappings after migrating to TFS 2010.

Question:
I opened VS2008 and connected it to the upgraded 2010 TFS server.  Upon clicking any of our Team Projects in source control explorer I get
"Team Foundation Error - The workspace MYWORKSPACE;DOMAIN\MYUsername already exists on computer MYPCNAME."

Answer:
The same local paths on your machine are mapped to 2 different workspaces, one on the preupgrade server and one on the postupgrade server.  It's not safe to have multiple workspaces on different servers mapped to the same local paths b/c you could pend some changes while connected to one server, and the other server would have no idea what you did.  You should either delete your conflicting workspaces from one of the servers (if you don't need them on both), or test the new TFS instance from a new workspace (on different machine).

If you want to test an existing production workspace on both servers, then yes, you will have to mess around with the workspace cache.

You don’t have to delete the entire cache, you just need to run "tf workspaces /remove:* /server:<serverurl>" to clear the cached workspaces from a server (the command won't delete the workspaces), and possibly "tf workspaces /server:<server>" to refresh the workspace cache for a given server.  You will also have to do back up and restore the workspace before switching servers or your local files could be inconsistent.

From the “Microsoft Visual Studio Team Foundation Server 2010 Beta 1” forum (not available anymore?)

Posted on Tuesday, June 8, 2010 8:49 AM | Back to top


Comments on this post: Do you have to recreate workspaces after upgrading a TFS 2008 server to TFS 2010?

# re: Do you have to recreate workspaces after upgrading a TFS 2008 server to TFS 2010?
Requesting Gravatar...
I was looking for information how to upgrade from TFS 2008 server to TFS 2010. This article is very informatiove.
Left by Baba koltuğu on Feb 18, 2011 7:55 AM

# re: Do you have to recreate workspaces after upgrading a TFS 2008 server to TFS 2010?
Requesting Gravatar...
Moving the new TFS instance to a new workspace(different machine) solved my mapping issues. I was just fortunate that I had another workspace to move it to. Thanks.
Left by Sla Prototype on Feb 21, 2011 6:41 PM

# re: Do you have to recreate workspaces after upgrading a TFS 2008 server to TFS 2010?
Requesting Gravatar...
The same local paths on your machine are mapped to 2 different workspaces, one on the preupgrade server and one on the postupgrade server.
Left by International Accreditation Orga on Apr 23, 2011 10:26 AM

# re: Do you have to recreate workspaces after upgrading a TFS 2008 server to TFS 2010?
Requesting Gravatar...
Thx for an explanation. Helped me a lot!
Left by rafek on Jun 09, 2011 10:20 AM

Your comment:
 (will show your gravatar)


Copyright © Clara Oscura | Powered by: GeeksWithBlogs.net