我在项目中基于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中,但它没有解决问题。
答案 0 :(得分:0)
I found this solution which worked for me.
基本上转到参考部分的实体框架,转到它的属性并选择&#34;复制本地&#34; =&#34; True&#34;。
感谢Respuestas / Jambor