Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Dear All,

Iam getting the below error in mvc4 application.

Could not load file or assembly 'EntityFramework, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

What I have tried:

I tried by removing the version of entity frame work, still not resolved.
Posted
Updated 28-May-18 22:49pm
Comments
F-ES Sitecore 29-May-18 5:01am    
If you're using EF 4.4.0.0 then the assemblies aren't in the bin folder, we can't tell you why, ensure you are referencing them correctly.

If you're using EF but a different version then something in your project is using that version. Either find out what and fix it, or (especially if it's not your code that is referencing it) add a version redirect and redirect 4.4.0.0 to the version you are using.

https://docs.microsoft.com/en-us/dotnet/framework/configure-apps/redirect-assembly-versions

1 solution

hi,

First: you should not remove the version.

Do you use NUGET to add EF to your project? have you updated EF recently? may be the EF version is updated and some where in your project the old vesion is addressed in your configs
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900