Mohammed Atef’s Technical blog

Change Team Foundation Server

Did you try to change Team foundation server for before?
I will give you very clear and easy steps to do this. First I will tell you how to change the server name for your Team Foundation server , I know this is very simple steps but this to any one first time try to do this process.
So you can connect Visual Studio team explorer to the new TFS server.  Use the following procedure:

  1. Open Visual Studio Team Explorer (VS2005 or VS2008)
  2. Open the ‘Connect to Team Foundation Server’ dialog (Tools -> Connect to Team Foundation Server…)
  3. Click on ‘Servers…’ button to open the ‘Add/Remove Team Foundation Server’ dialog
  4. Click on ‘Add…’ button to open the ‘Add Team Foundation Server’ dialog
  5. Type <New Server name> in the ‘Team Foundation Server name:’ text box
  6. Click ‘OK’
  7. Verify that an entry for devprosrv05 appear in the server list
  8. Click ‘Close’
  9. Select <New Server name> from the drop down list
  10. Select Team projects that you want Click ‘OK’

Now if you try to open any solution bonded to TFS you will see this message box cannot   connect to server. This issue because you didn’t refresh you TFS .so you need to do the following step to finalize changing your TFS server name.

  1. Close all instance of VS 2003, VS 2005 & VS 2008
  2. Delete Team Foundation Cache:
    a- C:\Documents and Settings\<Your User Id>\Local Settings\Application Data\Microsoft\Team Foundation\1.0
    Delete the Cache directory
    b- C:\Documents and Settings\<Your User Id>\Local Settings\Application Data\Microsoft\Team Foundation\2.0
    Delete the Cache directory
  3. Refresh your workspaces using VS 2005 & VS 2008 command prompts.
    a- From the VS 2005 command prompt run the following command:
    tf workspaces /s:http://<New Server Name>:<Port>
    b- From the VS 2008 command prompt run the following command:
    tf workspaces /s:http:// <New Server Name>:<Port>
  4. For Visual Studio .Net 2003, make sure you delete the solutions .suo file 
    I  hope this help
Advertisements

May 31, 2009 - Posted by | Developement

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: