"Error: One or more projects in the solution were not loaded correctly" particularly for Windows7
I am trying to open a Project/Solution in VS 2010. I was able to open the same code successfully in Windows XP, where it gave a dialogue "Temporarily Work Uncontrolled", and on clicking Yes the code loaded and worked fine. But in Windows 7 when I try to open same code it gives me the error:
"One or more projects in the solution were not loaded correctly"
and no project files are loaded in solution explorer.
I also faced the same problem. Here is what I did to resolve it:
Solution:
Run the solution file with administrator account. ex: Visual studio 2010 in your windows start menu, and right-click, run as administrator. Then, go to the file and open the solution file.
Reason for Problem
This occurred because we were creating the virtual directory for the project after copying that project to another location on the same machine. Thus, a virtual conflict occurred. Avoid this situation.
I had this same problem. The problem for me was in the .sln file. At the end of the file there were multiple of the following:
GlobalSection(TeamFoundationVersionControl) = preSolution
EndGlobalSection
I deleted the extra ones and the message went away.
I believe the cause of this is when TFS merges different check-ins of the solution or someone does it manually and does it wrong.
Paul
Copy that project into Visual Studio's project folder , then open it from Visual Studio , now it will be open
I found this technique by myself in Visual Studio 2013
Just resolved this issue on an open source project. Issue was due to spaces rather than tabs for a line in the .sln file.
https://github.com/fsprojects/Fix/commit/7f613791ed1b35714543eac163d6d9f78605cea8