'"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.
Solution 1:[1]
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.
Solution 2:[2]
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
Solution 3:[3]
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
Solution 4:[4]
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
Solution 5:[5]
It looks like you don't have the same version of Visual Studio installed as the one in which those projects were created. For example, if the project you're opening is a C++ project, if will fail if you don;t have VS C++ installed. Or you cannot load a project for ASP.NET MVC if you don't have MVC installed.
Open project files in Notepad and look for a Project guid. Then google it and you will find out what project type is not supported by your current installation of VS.
<ProjectGuid>{67122503-1A75-40CA-B37E-C0C4C9D6D38B}</ProjectGuid>
Solution 6:[6]
check if same version of vs2010 is present on win7 and winXP. I suspect project types present on winXP are not installed in win7 and that's why projects are unloaded
Solution 7:[7]
I am using Skydrive to share project files between Visual Studio copies on my laptop and PC.
I looked in File Explorer and could see "online-only" against many of the files in my project. Turns out those files are not actually on the computer yet.
There is a setting in the metro skydrive app to force these to be copied over.
I got this info from https://johnfail.wordpress.com/2013/12/10/windows-8-1-making-all-skydrive-files-available-offline/
Solution 8:[8]
Go to the Properties Window of the unavailable project showing the project’s path. File Dialog box will open. Locate project file (.csproj) and click Open. Finally Reload the Project
Solution 9:[9]
This is in VS2017. One of the .csproj files had a merge conflict from git and I had not resolved it. Resolving that fixed the issue.
Solution 10:[10]
I got this on windows 10.
I figured out that the file paths were too long.
My solution was to move the repository to a shorter path.
Solution 11:[11]
I was cloning a project (CleanArchitecture) and wanted to rename the namespace.
- I cloned the project to
C:\Users\MyUser\source\repos\MyProject - Then I opened
Notepad++, pressedCtrl+F, went toFind in Filesand searched forCleanArchitectureand replaced withMyProject. This changed all occurrences of the project's namespace toMyProject, accept the name of the.csprojfiles inFile Explorer! - I had to manually go to
C:\Users\MyUser\source\repos\MyProjectand then change the name of the.csprojfiles. - Then in Visual Studio reload the projects.
Solution 12:[12]
In my solution, i used c++ and because of that other projects stopped working for me. And I solved it by adding dotnet path in environment variables.
System -> System properties -> Environment variables -> Path (double click) or edit and enter the path where the dotnet is located. C:/Program Files/dotnet image: https://i.stack.imgur.com/56rEm.png
Solution 13:[13]
I just faced the same issue with my .NET MVC project.
the shortest way to solve it is to make sure that the following files name extentoins match exactly to each other:
- .SLN
- .csproj
- .user
Your-Project-Name.sln
this name must be matched with
Yout-PROJECT-NAME.csproj
and
Your-Project.user
NOTICE That tha names are NOT match which cause the issue the correct names:
Solution 14:[14]
It can be a build problem. Build your all project in a proper sequence when you will change in a project. for ex:- if you change in dblayer then rebuild that and after that build where you are using refrence of that layer.
Solution 15:[15]
Mostly these would be caused due to coruptions in solution files so try to edit solution file and do compare with working solutions files u will be able to see some wiered commenrs like ">>>>>>///"strong text this comment will appear when u did merged incorrect like wise . For me the below was get fixed for crashing VS issue by deleting extra lines in solution file sample as like below
[{051C84DE-7573-495D-8E2A-1DC3F1343B3E} = {F9A2AA02-760A-47B6-A663-BB224CDF86BC}
{F6D86487-62D1-46F4-8171-28A0635EE97F} = {F9A2AA02-760A-47B6-A663-BB224CDF86BC}
{7931E22C-6B9F-4FA3-8CEF-7A4FD557C22F} = {F9A2AA02-760A-47B6-A663-BB224CDF86BC}
EndGlobalSection
GlobalSection(TestCaseManagementSettings) = postSolution
CategoryFile = Retalix.StoreOfficeClient8.vsmdi
EndGlobalSection
EndGlobal]
so i deleted the extra lines and added like below then its worked for me
{9460EC3D-65F3-44C8-9987-E2303B8D7DC4} = {F9A2AA02-760A-47B6-A663-BB224CDF86BC}
{051C84DE-7573-495D-8E2A-1DC3F1343B3E} = {F9A2AA02-760A-47B6-A663-BB224CDF86BC}
{F6D86487-62D1-46F4-8171-28A0635EE97F} = {F9A2AA02-760A-47B6-A663-BB224CDF86BC}
{7931E22C-6B9F-4FA3-8CEF-7A4FD557C22F} = {F9A2AA02-760A-47B6-A663-BB224CDF86BC}
EndGlobalSection
EndGlobal
Solution 16:[16]
I found this solution. I fixed this lines in *.sln file:
BEFORE:
GlobalSection(TeamFoundationVersionControl) = preSolution
SccNumberOfProjects = 36
AFTER:
GlobalSection(TeamFoundationVersionControl) = preSolution
SccNumberOfProjects = 34
Solution 17:[17]
I encounter this problem after I reformat my pc and I resolve this problem. I hope this solution also can fix your problem. I'm using windows 10 with visual studio 2019.
1st- close your application, all running application by visual studio please close to avoid any bugs.
Image_1<<<<
2nd- open the windows search button.
Image_2<<<<
3rd- search Visual Studio Installer
Image_3<<<<
4th- just open it. Now if something popup message like say "UPDATE" just press update. The possible I get this error because I install old version of visual studio. After I update I restart my pc and I open again my project.sln no more error.
I hope this solution everyone can help.
Solution 18:[18]
I also ran into this problem. I came out of it at last with this help:
An update is available that improves the stability of Visual Studio 2012
The article describes an update that improves the stability of Microsoft Visual Studio 2012. The update also resolves a compatibility issue that may occur when the Microsoft .NET Framework is updated. When this issue occurs, Visual Studio 2012 may not load projects and may crash.
The update is available from Microsoft Update and can also be downloaded from the Microsoft Download Center.
The global version of this update has the file attributes (or later file attributes) that are listed in the following table.
Solution 19:[19]
Just Repair(Reinstall) your Setup...
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow





