Error connecting to TFS server: Team Foundation services are not available from server [url]

PROBLEM

Specific machines might fail to connect to Team Foundation Service with the error: "TF400813: Resource not available for anonymous access. Client authentication required".

Error

The error like this appears in the application log:

TFSServer.ConnectToServer() : EXCEPTION! (see below)
     Situation: Exception connecting to TFS server
     Outer Exception Type: Microsoft.TeamFoundation.TeamFoundationServiceUnavailableException
     Message: Team Foundation services are not available from server [url].
          Technical information (for administrator):
          TF400813: Resource not available for anonymous access. Client authentication required.

SOLUTION

You need to install Team Foundation Server 2012 Object Model Installer and Visual Studio 2010 SP1 Team Foundation Server Compatibility GDR.