β€œError: One or more projects in the solution were not loaded correctly,” especially for Windows7

I am trying to open Project / Solution in VS 2010. I was able to open the same code in Windows XP, where it gave the "Temporarily work unmanaged" dialog, and when I clicked "Yes" the code loaded and worked fine. But on Windows 7, when I try to open the same code, it gives me an error:

"One or more projects in the solution were not loaded correctly."

and no project files are loaded in Solution Explorer.

+6
source share
11 answers

I also ran into the same problem. Here is what I did to solve this:

Decision:

Run the solution file with an administrator account. Example: Visual Studio 2010 in the Windows Start menu and right-click, run as administrator. Then browse to the file and open the solution file.

Cause of the problem

This happened because we created a virtual directory for the project after copying this project to another place on the same computer. Thus, a virtual conflict occurred. Avoid this situation.

+3
source

Copy this project to the Visual Studio project folder, then open it from Visual Studio, now it will open

I found this technique myself in Visual Studio 2013

+3
source

Just solved this problem in an open source project. The problem is caused by spaces rather than tabs for the line in the .sln file.

https://github.com/fsprojects/Fix/commit/7f613791ed1b35714543eac163d6d9f78605cea8

+1
source

I had the same problem. The problem for me was in the .sln file. At the end of the file was a few of the following:

GlobalSection (TeamFoundationVersionControl) = preSolution

EndGlobalSection

I removed the extra ones and the message is gone.

I believe the reason for this is because TFS combines various solution checks or someone does it manually and does it wrong.

Pavel

+1
source

It seems that you do not have the same version of Visual Studio that was installed as the one in which these projects were created. For example, if the project you are opening is a C ++ project, if it fails, if you have not implemented VS C ++. Or you cannot download the project for ASP.NET MVC if you do not have MVC installed.

Open the project files in Notepad and find the guid project. Then google and you will find out which type of project is not supported by your current VS installation.

<ProjectGuid>{67122503-1A75-40CA-B37E-C0C4C9D6D38B}</ProjectGuid> 
0
source

check if the same version of vs2010 exists on win7 and winXP. I suspect that the project types present on winXP are not installed in win7 and that projects are unloaded

0
source

I use Skydrive to share project files between copies of Visual Studio on my laptop and PC.

I looked in Explorer and saw "online only" in many files of my project. It turns out these files are not actually on the computer.

The metro skydrive app has a setting to make them copy.

I got this information from https://johnfail.wordpress.com/2013/12/10/windows-8-1-making-all-skydrive-files-available-offline/

0
source

Go to the unavailability project properties window showing the path to the projects. The File dialog box opens. Locate the project file (.csproj) and click Open. Finally reload the project

0
source

This is in VS2017. One of the .csproj files had a merge conflict from git, and I did not resolve it. The solution that solved the problem.

0
source

I also ran into this problem. I came out of this, finally, with this help:

An update is available that improves the stability of Visual Studio 2012.

This article describes an update that improves the stability of Microsoft Visual Studio 2012. This update also fixes the compatibility issue that may occur when updating the Microsoft .NET Framework. When this problem 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 file attributes (or later file attributes) that are listed in the following table.

File attribute table

-1
source

Just restore (reinstall) your setting ...

-2
source

Source: https://habr.com/ru/post/1438922/


All Articles