title: Where does the Server information come from in a Workspace definition?
body: <p>I have an error where everytime I open Visual Studio, I get the following error:</p>
  
  <blockquote>
    <p>TF205020: Could not connect to server ‘tfs.server.com\collectionname’. This server was used in your last session, but it might be offline or unreachable. Confirm that the server is available on the network. To attempt to connect again, or to a different server, click ‘Connect To Team Foundation Server’ in Team Explorer or the Team menu.</p>
    
    <p>The server returned the following error: TF400324: Team Foundation services are not available from server tfs.server.com\collectionname.</p>
    
    <p>Technical information (for administrator):
      The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.We were unable to automatically populate your Visual Studio Online accounts.</p>
  </blockquote>
  
  <p>This is an on-premise TFS 2013 Update 4.</p>
  
  <p>I always get this error when starting Visual Studio and I have to go into Team Explorer and explicitly connect to the server to get it to connect correctly.</p>
  
  <p>The issue is that the URL in the error above is wrong.  It is missing a virtual directory.</p>
  
  <ul>
  <li><strong>Correct URL:</strong> <a href="https://tfs.server.com/tfs/collectionname" rel="nofollow noreferrer">https://tfs.server.com/tfs/collectionname</a></li>
  <li><strong>Url in Error:</strong> <a href="https://tfs.server.com/collectionname" rel="nofollow noreferrer">https://tfs.server.com/collectionname</a></li>
  </ul>
  
  <p>As you can see the <strong>tfs</strong> directory is missing.  I can see that the server is setup correctly in Team Explorer and I can also see that it is setup incorrectly in the Workspace configuration.  Here is a picture of the workspace config.</p>
  
  <p><img src="https://i.stack.imgur.com/nvDSZ.png" alt="enter image description here"></p>
  
  <p>My question is:</p>
  
  <p><strong>Where does this URL come from and why is it different to that stored in Team Explorer?</strong></p>