无法加载文件或程序集'EntityFramework,Version = 6.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089'或其依赖项之一

时间:2015-02-06 04:27:54

标签: entity-framework-6

我在项目中基于SQL Server Table创建了一个实体模型。我按下按钮点击获取操作。当我第一次打开页面时,我的工作正常。但点击按钮我收到以下错误:

Could not load file or assembly 'EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.

我尝试了

<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
在app.config中

,但它没有解决问题。

1 个答案:

答案 0 :(得分:0)

I found this solution which worked for me.

基本上转到参考部分的实体框架,转到它的属性并选择&#34;复制本地&#34; =&#34; True&#34;。

感谢Respuestas / Jambor