There are times when loading a solution in Visual Studio 2005 you get a “Some of the properties associated with the solution could not be read” but the solution is nonetheless loaded.
There’s a KB about it, but the problem we had here had nothing to do to what’s being described on the article.
The problem lays on the fact that for some reason, the TFS source control section of the solution file got duplicated and there were multiple instances of it:
GlobalSection(TeamFoundationVersionControl) = preSolution
To fix the problem:
- Unbind the solution from source control
- Open the .sln with Notepad and make sure you delete all of the “GlobalSection(TeamFoundationVersionControl) = preSolution” sections from the file.
- Bind the solution to source control again.
With that, Visual Studio will recreate the section properly and you should stop receiving the message.