无法加载文件或程序集'EntityFramework,版本= 5.0.0.0 [英] Could not load file or assembly 'EntityFramework, Version=5.0.0.0

查看:85
本文介绍了无法加载文件或程序集'EntityFramework,版本= 5.0.0.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

无法加载文件或程序集'EntityFramework,版本= 5.0.0.0,文化=中性,PublicKeyToken = b77a5c561934e089'或其中之一依赖关系.找到的程序集的清单定义不匹配程序集参考.(来自HRESULT的异常:0x80131040)

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

当我执行应用程序时,在VS 2015中出现此错误.早于 VS 2013 的应用程序没有错误.

I am getting this error in VS 2015, when i am executing the application. The application earlier it was in VS 2013 there is no error.

推荐答案

打开Package Manager控制台并尝试安装EF.

Open Package Manager Console and try to install EF.

Toos > Nuget Package Manager > Package Manager Console

运行

PM> install-package entityframework -version 5.0.0.0

或者您可以使用以下命令将其更新到最新版本(版本6.1.2)

Or you can update it to latest version(version 6.1.2) using below command

PM> Update-Package entityframework 

这篇关于无法加载文件或程序集'EntityFramework,版本= 5.0.0.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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