Adding a new Team Foundation Server location when previous server invalid

When you try to select a new TFS location and your previous server name is invalid you may receive this error:

The remote name could not be resolved: "ServerName"

The problem is that TFS will not open the dialog box to manage the server entries.  You can resolve this in one of two ways.

Option 1 - Remove the server locations from the registry locations below

  1. HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\TeamFoundation\Servers
  2. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\TeamFoundation\Servers

Option 2 - Add a new server to the registry to allow the management dialog to appear

  1. Locate the registry location called HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\TeamFoundation\Servers
  2. Add a new string key value and name it the locaiton of the server with a trailing \, as an example enter https://tfs.myserver.com:8080/ as the key name and the value would be https://tfs.myserver.com:8080.

*WARNING: Using Registry Editor incorrectly can cause serious problems that may require you to reinstall your operating system. There are no guarantees that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk.