Projects load failed in Visual Studio 2015

80,780

Solution 1

I experienced this issue for different reasons , but deleting all of the .vs folders ( there was one at the solution level and some projects had their own ) worked for me .

How To: Close the solution , delete all the .vs folders , reopen the solution .

Solution 2

I've already had this problem and in my case I solved it by executing VS as Administrator.

Solution 3

Try the following:

  1. Open the Output window (View->Output or Ctrl+Alt+O).

  2. Then right-click one of the failed projects and select Reload Project.

The Output window will now show a more detailed error message.

Solution 4

Try deleting .suo & .user files.


http://www.howtosolutions.net/2013/02/solving-project-file-error-could-not-find-part-of-the-path-with-visual-studio/

For those who receive this error but did not move projects around

Try deleting .suo files in your solution folder. Solution User Option file is a binary file which contains various user information and settings such as location of the breakpoints.

If that didn't help try also to delete .user file. If you have trouble finding .suo file

In Visual Studio 2015 (also in Community Edition), the .suo file is located inside a hidden .vs folder in solution folder. Since both .vs folder and .suo file have hidden attribute applied to them, you have to reveal them using using File Explorer by changing folder options to “show hidden files, folders and drives”. How to get to this option in File Explorer depends on the version of Windows:

  • In Windows 7, option is located under Organize > Folder and search options.
  • in Windows 8, it is located under View tab > Options > Change folder and search options.
  • in Windows 10, it is the same as in Windows 8.

Solution 5

I opened the .sln (MySolutionName.sln) file with Notepad++ and edited the below parts. I had 3 projects in my solution:

MyProject1Name, MyProject2Name, MyProject3Name
  1. Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MyProject1Name", "MySolutionName\MyProject1Name.csproj", "{D9FA9D42-71F3-459E-9643-426F002713EE}" EndProject

  2. Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MyProject2Name.Service", "MyProject2Name\MyProject2Name.csproj", "{173F0709-90E3-48B9-AA06-4AEC9957AFED}" EndProject

  3. Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MyProject3Name", "MyProject3Name\MyProject3Name.csproj", "{B5F4ADAC-7C37-4A2C-B15A-56C50F3BF7C9}" EndProject

then everything worked properly and the projects load successfully.

Share:
80,780

Related videos on Youtube

raghuvaran
Author by

raghuvaran

Updated on July 15, 2022

Comments

  • raghuvaran
    raghuvaran almost 2 years

    When I am opening a .sln in Visual Studio 2010, projects are loading properly. But when I open the same solution with Visual Studio 2015 (Professional with Update 1), projects are not getting loaded with the error (load failed). This is shown below:

    Projects not loading

    Can anyone suggest the solution for this?

    • Admin
      Admin over 6 years
      Have you solved your problem? Recently I had the same problem and it was because I didn't have the proper .net sdk installed in my pc (it was a lower version than the one that was installed with VS). So after getting it, my problem was solved.
  • raghuvaran
    raghuvaran about 7 years
    All the project paths are correct. Because with VS 2010 the projects are loading properly. The problem is only with VS 2015
  • Marcus D
    Marcus D over 3 years
    Great general tip, didnt solve my problem, but lead to a solution. thx.
  • Dom84
    Dom84 over 3 years
    thats it! 2 hours research than i found your post, thank you so much
  • d13
    d13 about 3 years
    How do you do this on Mac?
  • M. A. Cordeiro
    M. A. Cordeiro about 3 years
    Hey @d13, Here you can find some information on how to run an application with root privilege on Mac, this is not the exact answer for your question, but I think it can help you.
  • Hassaan Raza Now
    Hassaan Raza Now about 2 years
    thanks, changing the paths solved my problem.