title: TF31002 Can't connect to TFS online from VS 2012
body: <h2>Problem</h2>
  
  <p>I'm using <code>VisualStudio 2012 Ultimate v11.0.50727.1 Update 4</code> and <code>VisualStudio 2013 Ultimate v12.0.21005 EL</code> and I'm able to connect to TFS through any browser. But suddenly I can't connect to TFS at <strong><em>xxxxx</em>.VisualStudio.com</strong> from within VisualStudio anymore. Yesterday I easily did a Check-In at work with the same account. but I can't connect to TFS at home.</p>
  
  <p>This is the URL I'm using: (I've tried changing it a bit like adding /tfs or /DefaultCollection)</p>
  
  <p><img src="https://i.stack.imgur.com/tA0s2.jpg" alt="enter image description here"></p>
  
  <p>I'm stuck with this, I've tried different ways but none have worked so far and it's still giving me these errors: TF31002, TF300324 and TF205020</p>
  
  <p><img src="https://i.stack.imgur.com/9uw8X.jpg" alt="enter image description here"></p>
  
  <p><strong>TF31002</strong> (this error happens when trying to Add a new server)</p>
  
  <p><strong>TF205020</strong>: Could not connect to server ‘<a href="https://xxxxxx.visualstudio.com/defaultcollection" rel="noreferrer">https://xxxxxx.visualstudio.com/defaultcollection</a>’. 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><strong>TF400324</strong>: Team Foundation services are not available from server <a href="https://xxxxxx.visualstudio.com/defaultcollection" rel="noreferrer">https://xxxxxx.visualstudio.com/defaultcollection</a>.
  Technical information (for administrator):
    The underlying connection was closed: An unexpected error occurred on a send.</p>
  
  <p>(The last 2 errors happen when VisualStudio is trying to login to tfs)</p>
  
  <h2>I've tried these:</h2>
  
  <ol>
  <li>Go to VisualStudio.com and Sign out from all browsers</li>
  <li>Delete Cookies and Caches of IE10 (and test when IE has signed in to visualstudio.com or signed out of it)</li>
  <li>Go to Regedit and set the DWORD to 0 in <code>HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0\TeamFoundation\Instances</code></li>
  <li><a href="http://www.codeproject.com/Articles/613214/TF400324-Team-Foundation-services-are-not-availabl" rel="noreferrer">Browse</a> to <code>%LocalAppData%\Microsoft\Team Foundation\4.0\Cache</code> and delete everything</li>
  <li>Delete all credentials from Windows Credential Manager (and remove Link Online ID)</li>
  <li>Installed VS2013</li>
  <li>Installed Team Explorer 2013</li>
  <li>Installed VS2012 Update 4</li>
  <li>Installed a fresh copy of Windows 8</li>
  </ol>
  
  <h2>What I want.</h2>
  
  <p>After some long and desperate time of trying to connect to TFS online, <strong>Now I'm just looking for a way to Check-in my changes.</strong> (doing it by hand is not an option because there's a large number of changes and I can't even know which files are changed since last check-in)</p>