ASP.NET Core MVC project fails to load assembly

2

I'm building a website using ASP.NET Core MVC. I have a problem and don't know how to solve it.

I've created a separate project (.Net Core Library) and implemented some methods in it to use in the main project. I've added the library to my ASP.NET Core MVC project and tried to call a method inside a controller.

I've used a try catch block and noticed that when it hits the library code, it throws this exception:

Could not load file or assembly 'Microsoft.EntityFrameworkCore, 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)

Both projects target the .NET Core 2.2 framework.

Any help is much appreciated.

.net-core
asp.net-core-mvc
asp.net-core-2.2
asked on Stack Overflow Feb 19, 2019 by Asım Gündüz • edited Feb 19, 2019 by marc_s

1 Answer

0

The issue was opned in Github please try the suggested solutions

answered on Stack Overflow Feb 19, 2019 by Makhele Sabata

User contributions licensed under CC BY-SA 3.0