【问题标题】:Could not load file or assembly 'EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies无法加载文件或程序集 'EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' 或其依赖项之一
【发布时间】:2015-07-16 13:06:54
【问题描述】:

我在我的项目中创建了一个基于 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 中,但它不能解决问题。

【问题讨论】:

    标签: entity-framework-6


    【解决方案1】:

    I found this solution which worked for me.

    基本上去参考部分的实体框架,去它的属性并选择“复制本地”=“真”。

    归功于 Respuestas/Jambor

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-08-28
      • 2019-03-18
      • 2017-07-02
      • 1970-01-01
      • 2021-02-02
      • 1970-01-01
      • 2017-02-14
      • 2017-11-08
      相关资源
      最近更新 更多