Bug: How to fix Exception Could not load file or assembly 'EntityFramework, Version=4.0.0.0[…]' or o
来源:互联网 发布:网络拓扑图和系统架构 编辑:程序博客网 时间:2024/05/21 08:40
原文: http://www.cnetion.com/how-to-fix-exception-could-not-load-file-or-assembly-entityframework-version-4-qq-AUvBha09ivICeoL1jpEq.php
问题:
I installed EF6 and then realized MySQL has yet to provide support for it on their Connector/Net. So Naturally I rolled back and now I'm getting the error cited in the title.
My app.config looks like this
<?xml version="1.0" encoding="utf-8"?><configuration> <configSections> <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --> </configSections> <entityFramework> <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework"> <parameters> <parameter value="v11.0" /> </parameters> </defaultConnectionFactory> </entityFramework></configuration>
and my references look like:
Name: EntityFramework.dll
Created By: Microsoft Corporation
Verison: 5.0.20627.0
Additionally I have referenced the following assemblies:
Name: System.Data
Version: 4.0.0.0
File Version: 4.030319.17929
Name: System.Data.Entity
Version: 4.0.0.0
File Version: 4.030319.17929
The Exact text of the Exception I get is:
An error occurred creating the configuration section handler for entityFramework: Could not load file or assembly 'EntityFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
How can I fix this??
回答:
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
- Bug: How to fix Exception Could not load file or assembly 'EntityFramework, Version=4.0.0.0[…]' or o
- Could not load file or assembly 'vjscor, Version=2.0.0.0, Culture=neutral, 问题解决方法
- could not load file or assembly 'system.web.mvc version=1.0.0.0'
- "Could not load file or assembly \u0027Newtonsoft.Json, Version=4.5.0.0
- Unhandled Exception: System.BadImageFormatException: Could not load file or assembly
- iis站点运行错误:Could not load file or assembly 'EntityFramework' or one of its dependencies.
- Could not load file or assembly 'System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyTok
- Could not load file or assembly 'System.Web.Mvc, Version=3.0.0.0' or one of its dependencies
- Could not load file or assembly
- Could not load file or assembly...
- SAP3.0相关问题,Could not load file or assembly 'sapnco, Version=3.0.0.42
- VS2015解决问题 Could not load file or assembly 'Microsoft.VisualStudio.ConnectedServices, Version=2.0.0.
- Could not load file or assembly 'System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, Public
- Could not load file or assembly 'Microsoft.Office.Interop.Excel, Version=12.0.0.0, Culture=neutra...
- Could not load file or assembly 'ESRI.ArcGIS.SOESupport, Version=10.1.0.0, Culture=neutral, PublicKe
- Could not load file or assembly 'Microsoft.SqlServer.Management.Sdk.Sfc, Version=11.0.0.0, Culture=n
- Could not load file or assembly 'Microsoft.SqlServer.Management.Sdk.Sfc, Version=11.0.0.0 系统找不到指定的文件
- Exception about "Could not load file or assembly Namespace.Components' or one of its dependencies."
- CCNP-冗余链路中的广播风暴、多帧复制、地址表的不稳定
- CCNP-GNS3中telnet、ssh和https的详细配置步骤和测试
- OKHttp源码解析
- CCNP-帧中继在ospf中的应用-P2P-P2MP-Virlink虚链路解决不连续区域
- Filter和Servlet的执行顺序与实例
- Bug: How to fix Exception Could not load file or assembly 'EntityFramework, Version=4.0.0.0[…]' or o
- Mysql check、optimize和analyze作用
- Android读取assets目录下文件数据内容
- vfork与fork的区别
- CCNA(新版)-ipv6地址配置实验
- CCNA(新版)-ipv6默认路由、静态路由配置实验
- [leetcode] 201. Bitwise AND of Numbers Range
- 2013年下半年软考网络工程师考试下午科目第一大题分析
- CCNA(新版)-ipv6网络中启用-ospfv3路由协议配置实验