“Some of the properties associated with the solution could not be read”

One day I noticed that all of a sudden an message pops up with text “Some of the properties associated with the solution could not be read”,  when I try to open my project in Visual Studio 2008. I remember that I had changed some build settings at the solution level, but was not sure what this message was all about.

Tried binging for results and figured out that people have faced this issue in VS 2003 and VS 2005. I followed the discussion, which eventually lead to opening up the .sln file in a text editor and figuring out what has really changed. I noticed that under the “Global” section, we have “GlobalSection” section, which actually has the number of projects in the solution along with the .csproj information in it.  I was surprised to see that this section was repeated in my .sln file with different information (the SccNumberOfProjects attribute shows 68 at one place and 69 at other place). As I knew that my solution in fact had only 68 projects, I deleted the section with the incorrect information.  And that was it!!! . The error went away ..

Technorati Tags: Visual Studio 2008,GlobalSection,SccNumberOfProjects