I get this error when trying to \"Go Online\" with a project on a Visual Studio 2010 ALM project.
The project was previously connected to a team project on Team Fou
You have to rebind into the source control. First disassociate current project from the TFS by clicking on File-> Source Control -> Change Source Control.
And after that From File-> Source Control -> click on Add Website/Solution to Source Control.