TF31004: Team Foundation encountered an unexpected error while connecting to Team Foundation Server {0}

Last Update: 3/6/2017

TFS 2017 | TFS 2015 | TFS 2013

This is a generic error message displayed when the instance of Team Foundation on the local computer cannot connect to a Team Foundation Server and no error message was returned by a specific component within Team Foundation Server.

The likely causes of this problem are:

  • The version of Team Foundation running on the local computer does not match the version running on the Team Foundation Server server {name}.

  • The server returned HTML content instead of XML content.

  • The required Web service on the server could not be found.

    The procedure below will help you correct the cause.

To correct this error

  • Contact your Team Foundation Server administrator for the server {name} for further instructions.