实体框架错误初始化 [英] Entity Framework error initialization

查看:136
本文介绍了实体框架错误初始化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个MVC的.Net 4.5的项目,我已经安装了实体框架。

I have a MVC .Net 4.5 project and i have installed Entity Framework.

安装的版本是6.0.1。但是,当我运行的应用程序,它会返回一个错误:

The version installed was the 6.0.1. But when i run the application, it returns an error:

无法加载文件或程序集的EntityFramework,版本= 6.0.0.0,   文化=中性公钥= b77a5c561934e089',或者它的一个   依赖性。找到的程序集清单定义不   匹配的程序集引用。 (Excepción德HRESULT:0x80131040)

Could not load file or assembly 'EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of it's dependencies. The located assembly's manifest definition does not match the assembly reference. (Excepción de HRESULT: 0x80131040)

所以,我已经看到了在那之后,我已经卸载EF,并重新安装了它,但6.0.0版本。 但是,错误依然存在!

So, after i've seen that, i've uninstalled EF, and installed it again, but the 6.0.0 version. However, the error persist!

你知道出了什么问题?

感谢的人

推荐答案

请检查您的app.config或web.config文件。也许在这里错了版本号。同时检查EF库数量引用。

Check your app.config or web.config. Maybe here wrong version number. Also check EF library number in references.

这篇关于实体框架错误初始化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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