I have a Asp.Net Core Web API Service that when run on our dev server in IIS on startup throws fatal exception :
Exception Info: System.IO.FileLoadException: Could not load file or assembly 'Microsoft.AspNetCore.Mvc.Core, Version=2.2.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
This is quite strange because it runs fine in Visual Studio.
Project > Dependencies > SDK
Microsoft.AspNetCore.App (2.2.0)
Microsoft.AspNetCore.Mvc.Core (2.2.0)
Microsoft.AspNetCore.Mvc.Core.dll
Here's my package :
\packages\microsoft.aspnetcore.mvc.core\2.0.4\lib\netstandard2.0\Microsoft.AspNetCore.Mvc.Core.dll
User contributions licensed under CC BY-SA 3.0