Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not load file or assembly 'Microsoft.VisualStudio.VC.Interfaces

I updated my community edition of visual studio 2017 to 15.3.0

and I got this new build error

Build Failure. Error: Could not load file or assembly 'Microsoft.VisualStudio.VC.Interfaces, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. ========== Clean: 0 succeeded, 0 failed, 0 skipped ==========

there is no reference error and nothing new on my project except the new VS update.

I am developing an MVC 5 runs under 4.5.1 framework.

like image 500
Mohammad Jaber Avatar asked Aug 15 '17 14:08

Mohammad Jaber


People also ask

How do you fix Could not load file or assembly or one of its dependencies?

There are some workarounds for this issue: The dll file may not be in /bin folder. Just copy the dll file to /bin folder or set this preference Copy Local = True from Visual Studio. If the problem persists, check if the version of the assembly that is referenced is different than the version it is looking for.

Could not load file or assembly Publickeytoken null or one of its dependencies?

This error usually means that the assembly was not found. Try verifying that the file exists in the directory where your application is running.

Could not load file or assembly attempt was made to load a program with an incorrect format?

“An attempt was made to load a program with an incorrect format.” That means that the assembly, which was to be loaded, was in an unexpected format. The format, in this case, refers most likely to the 64-bit build of an application being deployed to IIS, which is being run in 32-bits.


1 Answers

Disable Lightweight Solution Load

  1. Tools ➜ Options ➜ Projects and Solutions ➜ General

enter image description here

  1. Also disable Lightweight load in the Properties view of the Solution:

enter image description here

  1. Restart Visual Studio
like image 169
Matt Hinze Avatar answered Sep 20 '22 15:09

Matt Hinze