实体框架错误初始化初始化、实体、框架、错误

2023-09-06 11:44:33 作者:做自己的女王

我有一个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.

 
精彩推荐