Visual Studio warning: "Some of the properties associated with the solution could not be read"

I just fixed a similar issue with a VS2010 solution with 35 projects... The cause was a duplicated

GlobalSection(TeamFoundationVersionControl)

section in the solution file. I closed the solution, removed the duplicate GlobalSection(TeamFoundationVersionControl) config and reloaded the solution and the warning message was gone.

If this is not the issue for you, considering you only have 2 projects I would ditch the busted solution file, create a fresh solution and re-add your two projects...


Seems like there is a number of reasons for this warning. I was getting it because my solution file SccNumberOfProjects = 4 when there was only 3.


The best solution is to force the VS to regenerate the configs. To do this:

  1. Open the sln file with a text editor.
  2. Scroll down till you reach the last "EndProject" element.
  3. Delete everything after that.
  4. Save, Close and rebuild the solution and everything will be regenerated.