将MVC4项目从VS2010升级到VS2012时出错 [英] Error while upgrading MVC4 project from VS2010 to VS2012

查看:88
本文介绍了将MVC4项目从VS2010升级到VS2012时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我面临下面提到的错误。我已将MVC4项目从VS2010升级到VS2012。在本地它工作正常,但从服务器运行时产生问题。



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) 

推荐答案

看起来你正在使用的某些程序集仍尝试使用4.1而另一个EF5。确保你到处都引用相同的程序集。因此,你需要更新所有对使用EF5的引用并重建项目。 :)



点击此处查看更多信息:可以不加载文件或程序集EntityFramework
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


这篇关于将MVC4项目从VS2010升级到VS2012时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆