Browsing Posts in Team Foundation Server

I was trying to connect to a TFS server in another domain, but without success. I could connect to the TFS web services through FireFox after providing the correct credentials, but Visual Studio was simply failing with a TF31002: Unable to connect to this Team foundation Server: tfs.


I wasn’t being prompted for alternate credentials when using Visual Studio, only when navigating to the TFS server (http://tfs:8080/services/v1.0/ServerStatus.asmx) through FireFox. Navigating to a network share (\\tfs) also prompted me for credentials and allowed me to see the shares. Only Visual Studio wasn’t prompting for credentials. I decided to try IE7 and received a 502: Bad Gateway error. Ah ha! A lead. Tools… Internet Options… Connections… LAN settings… Uncheck “Automatically detect settings”… OK… OK… Refresh IE and I’m prompted for credentials and can see the server status page. Woohoo! Now let’s try adding the TFS server again in Visual Studio:


Click OK and the moment of truth…


We have a credential prompt!!! Type in correct credentials for the other domain and…


Houston, the eagle has landed! Looks like automatic proxy detection somehow prevents IE and Visual Studio from connecting to TFS successfully. I would like to point out that “Automatic proxy detection is enabled” was not listed amongst the possible reasons for failure in the TF31002 error. Go figure.

Overall I’ve had good first impressions of Team Foundation Server, which I installed and configured for a client. We installed TFS Workgroup Edition to get started and later wanted to upgrade to the full version, which the client acquired through volume licensing. Upgrading from Workgroup (or Trial) Edition to the full version using a volume license key (VLK) is far from well-documented. Here’s the steps:

  1. Find your license key by browsing your TFS (VLK) install media for the file DVD-ROM:\\atdt\setup.sdb and open it in Notepad. Go to the bottom of the file (or search for [Product Key].
  2. On the TFS box*, start Add/Remove Programs.
  3. Change/Remove Microsoft Visual Studio 2005 Team Foundation Server.
  4. Select update product key and enter the product key you found in step 1. You’ll have to type it in manually or copy/paste in groups of 5 characters.
  5. Click OK and TFS should restart. You are now running the full version of TFS.

You can optionally remove users from the [SERVER]\Team Foundation Licensed Users group as this group is only used in Workgroup mode. I recommend removing everyone from this group as it will reduce future confusion if you ever have to troubleshoot authorization issues with TFS.

* Repeat these steps on both application and data tier boxes if you have a multi-server installation.