Zorro codes .NET

Thursday, April 06, 2006

Team Foundation migration without preparation

We are still using the Beta 3 refresh, so there might have been some changes in the final product, but here is a short guide of how to fix the problems you might be having if you migrated Team Foundation to another domain without reading up on it or doing any preparation first.

- Problem one, TFS services won't start.

Make new TFS Service, Admin and Reporting accounts in the new domain. Assign them the same rights as the old ones. Also switch start identity of the services to those accounts. Don't forget the SQL Server rights on the databases.

- Problem two, users can't logon to the server.

Redo all the security and grouping stuff on all your Team Projects from the TFS Admin account. We actually had a problem that one project got bugged and to give people access again we needed to make them Team Foundation Admin. Still trying to find a solution for that one. The rest of the projects did work like a charm though.

- Problem three, Part I, users lost their workspaces and more importantly their shelvesets.

First off, start Visual Studio and open the Team Explorer on all the developer workstations. TFS will now make new users in the system with their own id's, and their own workspace (because the domain name is different then before and the usernames are stored in the format DOMAIN\Username).

Next you go to the SQL Server to the TfsVersionControl database, the open the Workspaces table, and you will see the old and new workspaces. Now do some good gueswork and deductive reasoning on what the old id for a particular user is, and what the new one is. Then delete the newly created namespace and switch the user id's of the old namespaces around with the new user id's. Et voilá, part one of the problem solved.

- Problem three, part II, the old workspace and location are still cached on the developers computer, and therefor you can't assign the same directory binding in the new workspace (it will report it is already in use by another workspace).

Go to: C:\Documents and Settings\[Username].[DOMAIN]\Local Settings\Application Data\Microsoft\Team Foundation\1.0\Cache, edit the VersionControl.config file containing the workspace information. Most of the XML tags are self explanatory, just edit the ownerName attribute of the WorkspaceInfo tag. Switch all the old domains with the new domain and you are finished.

0 Comments:

Post a Comment

<< Home