Team Foundation Server Error TF31002

This post will discuss a solution for the Team Foundation Server that reads:

Microsoft Visual Studio

TF31002: Unable to connect to this Team Foundation Server:
https://libra:12303/tfs.
Team Foundation Server Url: https://libra:12303/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 incorrect.

Technical information (for administrator):
The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.

tf31002error

I received this error when I tried to Add my TFS Server to my Visual Studio 2010 Team Explorer.

The key piece of information that is mentioned in the error message is:

Technical information (for administrator):
The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.

This key piece of information informs us that we need to create an SSL Certificate on the TFS server (in my case, the TFS server is on my machine named “Libra”).

Here’s a procedure for creating an SSL cert on the server and installing it on the client.

  1. Log into the server and go to the IIS Manager, then double-click the Server Certificates icon.
    iismanager-01
  2. Located in the “Actions” side-bar, click the “Create Self-Signed Certificate…” link.
  3. Follow the on-screen instructions, then click “OK”.
    createssl1
  4. Right-click on the SSL certificate, then select “Export…”.
    exportssl
  5. Export the SSL Certificate to your Desktop and specify a password. After you export the SSL Certificate, move the certificate to the Desktop of the computer that is running Visual Studio.
  6. From the computer that is running Visual Studio, right-click the SSL Certifcate then select “Install PFX”.
    installpfx
  7. Follow the on-screen instructions using the default settings where applicable. However, when you get to the step of the Certificate Import Wizard that allows you to specify which store to save the certificate in, choose the “Trusted Root Certification Authorities” store.
    trustedrootcertificationauthorities
  8. Finish up the Certificate Import Wizard and you’re done.

Now that you have created and installed an SSL Certificate, you can add the TFS Server to your list of TFS Servers in your Visual Studio Team Explorer.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s