Troubleshooting connections to TFS

In my current and previous lives, one of the problems I get involved in is when people can’t connect to Team Foundation Server for some reason.

Usually the following occurs:

  • “It was working yesterday but not today”
  • “I haven’t changed anything”
  • "Team Foundation Server tfsserver does not exist or is not accessible at this time."
  • I get an error message: TF31002: Unable to connect to this Team Foundation Server

TF31002: Unable to connect to this Team Foundation Server

The very first thing I do is confirm that it works for a known-good configuration – usually my workstation.

Providing that works and the server appears to be functioning, the next thing I do is ask the user to call the CheckAuthentication web service using Internet Explorer.

The URL for this is: http://TFSSERVER:8080/services/v1.0/ServerStatus.asmx?op=CheckAuthentication

By doing this check, I am doing four things:

  • Eliminating Team Explorer from the picture
  • Eliminating the .NET networking stack from the picture
  • Ensuring that Windows Authentication is working correctly (that’s why I say IE)
  • Ensuring that proxy settings are set correctly

In most cases I’ve seen, the TFS connection issues are because the proxy settings have changed or are incorrect. Because .NET and Visual Studio use the proxy settings from Internet Explorer, it’s important to have them set correctly.

In rare cases it’s beyond this. That’s when I start looking at things like:

  • Can I resolve the server name?
  • Can I connect using the IP address? Are there HOSTS file entries? (see: c:\windows\system32\drivers\etc\hosts)
  • Can I ping the server?
  • Can I telnet to port 8080?

After that I get stuck :) Enjoy your troubleshooting!

Update - I forgot these ones:

  • Does the user actually have access?
    • Run TfsSecurity.exe /server:servername /im n:DOMAIN\User to check their group memberships
  • Has the user changed their domain password lately?
    • In some cases they’ll need to logoff the workstation and log back on again to get a new security token.

    Update #2:

  • Is the computer's domain certificate valid?
    • Running this command from the command prompt will update the certificate: gpupdate /force
    Published 26 June 08 08:30 by grantholliday
    Filed under:

    Comment Notification

    If you would like to receive an email when updates are made to this post, please register here

    Subscribe to this post's comments using RSS

    Comments

    # Rory Primrose said on June 27, 2008 6:59 PM:

    The one that bites me the most is my domain password expiring. There is nothing that explicitly tells you that you password has expired. You just start getting access denied on everything.

    # Visual Studio Team System (VSTS) Blog - by Neno Loje said on July 9, 2008 1:45 PM:

    Check the Windows Event Log . Run TFS Best Practices Analyzer . (part of the Power Tools , requires PowerShell

    # Roy L said on September 8, 2008 8:14 AM:

    In my case the automatic configuration script worked in IE, but prevented VS from connecting to TFS. I had to add the BypassProxyOnLocal registrykey to get it to work (http://msdn.microsoft.com/en-us/library/bb909716.aspx)

    # S Krishnamachari said on April 21, 2009 7:31 PM:

    Add one more possible cause. The IE Tools>Options>Connections>AdvancedSettings for proxy is to be enabled to be able to hit the TFSServer site correctly. VS picks up the settings from the registry this sends to.

    # NG said on April 28, 2009 1:28 AM:

    We started seeing this error on some of our machines about 1 week after the TFS 2008 install. At this point, my computer can connect fine to TFS from VS (the TFS install was done using my local account on the server - we don't use a domain/active directory). One of my colleagues is able to access the http://TFSSERVER:8080/services/v1.0/ServerStatus.asmx?op=CheckAuthentication link in IE while another can access this link via Firefox but not in IE. Neither of them can connect to TFS from VS 2008. We tried checking/unchecking proxy in IE's LAN Setup but no luck yet.. I just installed TFS Server SP1 but the problem still remains.. any ideas?

    # Ralph said on November 23, 2009 4:20 AM:

    VS2010b2 on Vista versus Codeplex gave me a TF31002 saying "(404) Not found.". The solution originally provided in http://blogs.msdn.com/ablock/archive/2009/05/20/for-tfs-2010-beta-1-resolving-tf31001-the-servicepointmanager-does-not-support-proxies-with-the-https-scheme.aspx worked for the TF31002 error in my case. (Just my 2 cents..)

    Leave a Comment

    (required) 
    (optional)
    (required) 

      
    Enter Code Here: Required

    Search

    This Blog

    Syndication

    Page view tracker