Michael
Michael

Reputation: 13616

error - One or more projects in the solution were not loaded correctly

In VisualStudio2010 I changed the name of the project and the name of the solution. When I try to open the solution I get this error:

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

Any idea why I get this error?And how to fix it?

Upvotes: 5

Views: 24084

Answers (7)

Yaron Binder
Yaron Binder

Reputation: 126

I had this problem, the path for the .csprog files in the solution some how changed, instead of \\server\folder it changed to \server\folder.

Try open the .sln file using the Notepad and check all the .csproj files path.

Upvotes: 0

Ayush Saxena
Ayush Saxena

Reputation: 1

I got the same issue after the code merge. The issue was few closing XML tags were removed. Fix: Open the .csproj file in a notepad and correct the closing tags.

Upvotes: 0

Krishna Prasad S
Krishna Prasad S

Reputation: 171

Check .sln and .csproj files to see if any unused references are added without knowledge

Upvotes: 0

Rakesh
Rakesh

Reputation: 119

Try to open the application as a website instead of project. In my case the project/application was created as website and when i was trying to open the solution it was giving me the error so i opened the application as a website and the application got loaded.

Upvotes: 0

Thalles Noce
Thalles Noce

Reputation: 806

In my situation, I had the GlobalSection duplicated in my solution. I'm using TFS and sometimes it has trouble to merge configuration from multiple developers at the same time.

Open your Solution (.sln) in NotePad++ and look up for this tag and remove one from the duplicated.

GlobalSection(TeamFoundationVersionControl) = preSolution

You may need to readd the last projects to the solution though.

Upvotes: 3

Stan Huang at Taiwan
Stan Huang at Taiwan

Reputation: 529

I got the same trouble when using VC2012. My steps for it are: Control Panel --> Program & Functions --> Right Click on VC2012 --> Select "Recover" --> restart Windows --> re-open the project. It works. The trouble comes from the damage of VC2012 iteself.

Upvotes: 0

KamranJavid
KamranJavid

Reputation: 66

Try opening the .csproj file in notepad and making sure all references and paths are correct.

Upvotes: 5

Related Questions