Today we had a strange problem in our project. One of my colleagues opens his solutions and he did a “Get Latest Version”. Afterwards it seems that he lost his connection with the TFS. All code was unbinded.
We checked if TFS was the default source control, which was true. We want to manually bind his code again with TFS, which failed because there was no recognized server.
Me and another colleague had no problem with it, so we knew that the TFS server was working correctly.
Next we did following steps :
- Removing the workspace and create a new one
- Delete the local TFS cache
None of this worked.
As last step we removed the tfs server from the “Connect to team foundation server dialog box”, add again the server and now it works again.
We still don’t know what the problem was, but it was strange.
Update :
Txs to Gabriel Lozano-Moran I have more info on this problem. It seems that this behavior is a bug in TFS 2008. This happens when the TFS instance goes offline. He also has a better solution too solve it.
More info can be found here : http://gabriel.lozano-moran.name/blog/PermaLink,guid,40ec1818-1e8a-45de-9111-7370544d3ba4.aspx.