When deploying a SharePoint solution from Visual Studio 2010 you get this error:

Error occurred in deployment step 'Recycle IIS Application Pool': Cannot connect to the SharePoint site. If you moved this project to a new computer or if the URL of the SharePoint site has changed since you created the project, update the Site URL property of the project.

Well, as the second sentence clearly states you have to fill in the Site URL property.

And it’s not really surprising that a co-worker will receive this very error after getting your solution from TFS for the first time. As Microsoft decided to let you only deploy to a local SharePoint instance from Visual Studio the Site URL property will be different for every developer. Therefore it isn’t stored in the .csproj file but in the .csproj.user file which obviously isn’t meant to go into TFS. So everybody starts out with a blank value for this property–which is again covered by the helpful error message.