Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TF31002 Can't connect to TFS online from VS 2012

Problem

I'm using VisualStudio 2012 Ultimate v11.0.50727.1 Update 4 and VisualStudio 2013 Ultimate v12.0.21005 EL and I'm able to connect to TFS through any browser. But suddenly I can't connect to TFS at xxxxx.VisualStudio.com 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.

This is the URL I'm using: (I've tried changing it a bit like adding /tfs or /DefaultCollection)

enter image description here

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

enter image description here

TF31002 (this error happens when trying to Add a new server)

TF205020: Could not connect to server ‘https://xxxxxx.visualstudio.com/defaultcollection’. 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.

TF400324: Team Foundation services are not available from server https://xxxxxx.visualstudio.com/defaultcollection. Technical information (for administrator): The underlying connection was closed: An unexpected error occurred on a send.

(The last 2 errors happen when VisualStudio is trying to login to tfs)

I've tried these:

  1. Go to VisualStudio.com and Sign out from all browsers
  2. Delete Cookies and Caches of IE10 (and test when IE has signed in to visualstudio.com or signed out of it)
  3. Go to Regedit and set the DWORD to 0 in HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0\TeamFoundation\Instances
  4. Browse to %LocalAppData%\Microsoft\Team Foundation\4.0\Cache and delete everything
  5. Delete all credentials from Windows Credential Manager (and remove Link Online ID)
  6. Installed VS2013
  7. Installed Team Explorer 2013
  8. Installed VS2012 Update 4
  9. Installed a fresh copy of Windows 8

What I want.

After some long and desperate time of trying to connect to TFS online, Now I'm just looking for a way to Check-in my changes. (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)

like image 309
Bizhan Avatar asked Dec 01 '13 06:12

Bizhan


People also ask

How do I connect to a TFS server in Visual Studio 2012?

Open Visual Studio 2012, click on the Team menu and then click on the Connect to Team Foundation Server... option. From the Team Explorer window, click on Configure Team Projects... At the Connect to Team Foundation Server window, click the Servers...


2 Answers

I just saw this link and it totally worked for me after nothing else would: http://www.cnblogs.com/CuteNet/p/3556276.html

regedit:

  1. Close all instances of Visual Studio 2013
  2. Delete this folder in the registry (just “TokenStorage” – nothing else):

HKEY_CURRENT_USER\Software\Microsoft\VSCommon\12.0\ClientServices\TokenStorage

like image 197
David Rendall Avatar answered Sep 24 '22 09:09

David Rendall


I had similar issue where I couldn't connect (TF31002) to TFS 2010 using VS 2010, 2012 and 2013 on my laptop but can connect from web and other servers just fine. I tried almost all suggestions given by various sources online but had no luck.

I was getting ready to reimage tha laptop but as one last try I started comparing config's between another virtual machine (where the connection was successful) to my laptop. I found that in my laptop I have additional defaultProxy settings in 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config’

<system.net>
  <defaultProxy>
    <proxy autoDetect="false" bypassonlocal="false" proxyaddress="http://XXX.X.X.X:XXXX" usesystemdefault="false"/>
  </defaultProxy>
</system.net>

After deleting the above node completely I was able to connect to TFS 2010 successfully.

Hope this helps.

like image 40
Smiley Face Avatar answered Sep 24 '22 09:09

Smiley Face