TF31002 Can't connect to TFS online from VS 2012

tfs, visual-studio, visual-studio-2012, visual-studio-2013

Solution

I've found a way to check-in all changes of the home computer at work computer.

Copy the local TFS folder from home computer (including the hidden `$tf` subfolder) to work computer.

Install Team Foundation Sidekicks for 2012

Search for the home computer name

Click on `Update Workspace Computer Name`

Go to `Source Control Explorer` and open `Workspaces...`

Check `Show remote workspaces` checkbox (if the home workspace is not shown)

Edit the home workspace

Remove current mapping

Map `$/` to the local folder (which has `$tf`)

When click on `Advanced` It should look like this:

Switch to the new Workspace and done!

It seems to me that private workspace is what causing the problem, and I will try to change it to public after I checked in.

Edit

I've found another workaround which requires no workspace hacks. (This method is originally designed for recovering from wrong check-ins)

In Source Control Explorer select root (collection, not project)

click `Compare folders`

in `source version` section choose the latest safe version

in `target path` section browse to the not-checked-in folder

make sure both paths end with same name (e.g. $/MyProj and E:\FromHome\TFS\MyProj)

(set any additional settings...) and click OK

DoubleClick on files with different value of `Yes` and write down the names of those file that should be loaded from local folder (right part of screen probably shows local)

Open those files from Solution Explorer and overwrite them with local files

Problem

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) 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 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: - Go to VisualStudio.com and Sign out from all browsers - Delete Cookies and Caches of IE10 (and test when IE has signed in to visualstudio.com or signed out of it) - Go to Regedit and set the DWORD to 0 in `HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0\TeamFoundation\Instances` - Browse to `%LocalAppData%\Microsoft\Team Foundation\4.0\Cache` and delete everything - Delete all credentials from Windows Credential Manager (and remove Link Online ID) - Installed VS2013 - Installed Team Explorer 2013 - Installed VS2012 Update 4 - 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)

Original source