"The located assembly's manifest definition does not match the assembly reference" "The located assembly's manifest definition does not match the assembly reference" asp.net asp.net

"The located assembly's manifest definition does not match the assembly reference"


You may check "assembly versions" in Tools > Nuget Package Manager > Manage NuGet Packages for Solution (VS2015). Check versions of assemblies used in your projects in solution & use single version.


I had the same error regarding the version of System.Web.Mvc.

In my case, there was no NuGet package inconsistency between projects, but there was a web.config file in my Views folder with the following line:

<host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

Changing this version number to match the currently installed NuGet package fixed the issue.