Errore TF31002 da TFS 2010 Web Access tramite SSL

Se provate a pubblicare verso l’esterno il TFS tramite https usando chiaramente un fqdn, potreste incorrere in problemi relativi alla parte Web Access:

TF31002: Unable to connect to this Team Foundation Server: https://serverxyz/tfs. Team Foundation Server Url:https://serverxyz/tfs. Possible reasons for failure include: - The name, port number, or protocol for the Team Foundation Server is incorrect. - The Team Foundation Server is offline. - The password has expired or is incorrect. Technical information (for administrator): The request failed with HTTP status 404: Not Found.

Il problema può essere risolto facilmente modificando il web.config del TFS Web Access in modo da farlo puntare all’fqdn del server invece che al nome del server (default).

 

  1. Andate in C:\Program Files\Microsoft Team Foundation Server 2010\Application Tier\Web Access\Web\
  2. Aprite web.config
  3. Modificate da
    <tfServers>
         <!-- <add name=”
    http://serverxyz:8080” /> -->
    </tfServers>
  4. a
    <tfServers>
         <add name=”
    https://externaltfsname.domain.com/tfs />
    </tfServers>

 

Nota: ricordatevi di aggiungere /tfs, perché nell’esempio fornito nel we.config non è presente e senza non funziona nulla