If you try to publish externally TFS through https using a fqdn, you may run into problems related to the 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.
This problem can be easily solved modifying web.config in TFS Web Access in order to make it use fqdn instead of server name (default).
- Go to C:\Program Files\Microsoft Team Foundation Server 2010\Application Tier\Web Access\Web\
- Open web.config
- Change
<tfServers>
<!– <add name=”http://serverxyz:8080” /> –>
</tfServers>
- in
<tfServers>
<add name=”https://externaltfsname.domain.com/tfs” />
</tfServers>
Note: remember to add /tfs, because in the sample web.config it’s not present, but it’s needed, otherwise it does not work.