1
votes

I have a MVC .Net 4.5 project and i have installed Entity Framework.

The version installed was the 6.0.1. But when i run the application, it returns an error:

Could not load file or assembly 'EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of it's dependencies. The located assembly's manifest definition does not match the assembly reference. (Excepción de HRESULT: 0x80131040)

So, after i've seen that, i've uninstalled EF, and installed it again, but the 6.0.0 version. However, the error persist!

Do you know what's the problem?

Thanks people

4

4 Answers

3
votes

Check your app.config or web.config. Maybe here wrong version number. Also check EF library number in references.

2
votes

Go to 'Manage NuGet packet for Solution...', click 'Manage' on 'Entity Framework' and check to the projects that require Entity Framework

1
votes

The solution is to install last version of Entity Framework from NuGet to all of your project in solution.

This worked for me just fine.

Hope this helps.

0
votes

I had this problem, because I => 1: created a new solution using the Web API template for VS 2013. This had a reference to EF 5 2: added a new project to solution, to serve as the data layer 3: installed EF to the new project, NuGet installed the latest, EF 6!

The problem was caused because of the version mismatch between projects within the same solution.

The fix was to install EF 6 on the project which had EF 5. NuGet took care to uninstall EF 5.