Click here to Skip to main content
15,879,095 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi,
I am facing below mentioned error. I have upgraded MVC4 project from VS2010 to VS2012. On local it is working fine but creates issue while running from server.

Could not load file or assembly 'EntityFramework, Version=4.1.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) 
Posted

1 solution

It seems like some assemblies you are using still try to use 4.1 while the other EF5. Make sure you reference the same assembly everywhere. So, you need to update all the references to use EF5 and rebuild the project. :)

Check here for more info:Could not load file or assembly EntityFramework
 
Share this answer
 

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