Click here to Skip to main content
15,905,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I installed Entity Framework version 6.1.0 through manage Nuget Packages but i'm getting this error Could not load file or assembly 'EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference
Posted
Updated 15-Mar-20 7:17am
Comments
Vedat Ozan Oner 1-May-14 4:44am    
I am not sure but possibly you do this in one project (project A) and in another project (project B), you only add a reference for that project (project A). (this was assumption part)
If you add the EF 6.1 reference (NuGet) in project B, you will see the error cleared. I hope :)

 
Share this answer
 
Had same problem. Finally got to know the reason that EntityFramework assembly reference in 2 projects were different. Made them same (6.0) and it worked.
 
Share this answer
 
This can happen if your project name conflicts with a nuget package you referenced. I wasted about 3 hrs before I realized what is going on
 
Share this answer
 
Comments
Richard MacCutchan 15-Mar-20 13:38pm    
Please focus on current issues. This one is more than five years old.
Dave Kreskowiak 15-Mar-20 13:53pm    
If you called your project "EntityFramework", you did something that would be very rare to occur.

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



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