星空网 > 软件开发 > ASP.net

我的ef连接mysql之旅

百度:ef5 mysql
http://my.oschina.net/u/170703/blog/210814?p=1
 
百度:dotconnect for mysql 破解  可以找到极限软件网站上的 dcmysql的破解版
 
{"创建 entityFramework 的配置节处理程序时出错: 未能加载文件或程序集“EntityFramework, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”或它的某一个依赖项。找到的程序集清单定义与程序集引用不匹配。 (异常来自 HRESULT:0x80131040) (D:\\SourceProject\\chuxing_ver1\\trunk\\TravelWebApi\\TravelWebApi\\web.config line 9)"}
 
用户代码未处理 System.TypeInitializationException
  HResult=-2146233036
  Message=“BLL.BasicBll.ChemapaoBll”的类型初始值设定项引发异常。
  Source=BLL
  TypeName=BLL.BasicBll.ChemapaoBll
  StackTrace:
       在 BLL.BasicBll.ChemapaoBll.GetEmployees(Int64 entId)
       在 TravelWebApi.Controllers.QueryController.EntDetail(Int64 entId) 位置 d:\SourceProject\chuxing_ver1\trunk\TravelWebApi\TravelWebApi\Controllers\QueryController.cs:行号 36
       在 lambda_method(Closure , ControllerBase , Object[] )
       在 System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters)
       在 System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
       在 System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
       在 System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass42.<BeginInvokeSynchronousActionMethod>b__41()
       在 System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _)
       在 System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.End()
       在 System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult)
       在 System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass37.<>c__DisplayClass39.<BeginInvokeActionMethodWithFilters>b__33()
       在 System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49()
  InnerException: System.TypeInitializationException
       HResult=-2146233036
       Message=“System.Data.Entity.Internal.AppConfig”的类型初始值设定项引发异常。
       Source=EntityFramework
       TypeName=System.Data.Entity.Internal.AppConfig
       StackTrace:
            在 System.Data.Entity.Internal.AppConfig.get_DefaultInstance()
            在 System.Data.Entity.Internal.LazyInternalConnection..ctor(DbContext context, String nameOrConnectionString)
            在 System.Data.Entity.DbContext..ctor(String nameOrConnectionString)
            在 EF.ChemapaoEntities..ctor() 位置 d:\SourceProject\chuxing_ver1\trunk\TravelWebApi\DataAccess\EF\Chemapao.Context.cs:行号 18
            在 BLL.BasicBll.ChemapaoBll..cctor() 位置 d:\SourceProject\chuxing_ver1\trunk\TravelWebApi\Business\BLL\BasicBll\ChemapaoBll.cs:行号 15
       InnerException: System.Configuration.ConfigurationErrorsException
            HResult=-2146232062
            Message=创建 entityFramework 的配置节处理程序时出错: 未能加载文件或程序集“EntityFramework, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”或它的某一个依赖项。找到的程序集清单定义与程序集引用不匹配。 (异常来自 HRESULT:0x80131040) (D:\SourceProject\chuxing_ver1\trunk\TravelWebApi\TravelWebApi\web.config line 9)
            Source=System.Configuration
            BareMessage=创建 entityFramework 的配置节处理程序时出错: 未能加载文件或程序集“EntityFramework, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”或它的某一个依赖项。找到的程序集清单定义与程序集引用不匹配。 (异常来自 HRESULT:0x80131040)
            Filename=D:\SourceProject\chuxing_ver1\trunk\TravelWebApi\TravelWebApi\web.config
            Line=9
            StackTrace:
                 在 System.Configuration.BaseConfigurationRecord.FindAndEnsureFactoryRecord(String configKey, Boolean& isRootDeclaredHere)
                 在 System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
                 在 System.Configuration.BaseConfigurationRecord.GetSection(String configKey)
                 在 System.Web.HttpContext.GetSection(String sectionName)
                 在 System.Web.Configuration.HttpConfigurationSystem.GetSection(String sectionName)
                 在 System.Web.Configuration.HttpConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String configKey)
                 在 System.Configuration.ConfigurationManager.GetSection(String sectionName)
                 在 System.Data.Entity.Internal.AppConfig..ctor()
                 在 System.Data.Entity.Internal.AppConfig..cctor()
            InnerException: System.IO.FileLoadException
                 HResult=-2146234304
                 Message=未能加载文件或程序集“EntityFramework, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”或它的某一个依赖项。找到的程序集清单定义与程序集引用不匹配。 (异常来自 HRESULT:0x80131040)
                 Source=System.Configuration
                 FileName=EntityFramework, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
                 FusionLog==== 预绑定状态信息 ===
日志: DisplayName = EntityFramework, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
(Fully-specified)
日志: Appbase = file:///D:/SourceProject/chuxing_ver1/trunk/TravelWebApi/TravelWebApi/
日志: 初始 PrivatePath = D:\SourceProject\chuxing_ver1\trunk\TravelWebApi\TravelWebApi\bin
调用程序集: System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35。
===
日志: 此绑定从 default 加载上下文开始。
日志: 正在使用应用程序配置文件: D:\SourceProject\chuxing_ver1\trunk\TravelWebApi\TravelWebApi\web.config
日志: 使用主机配置文件: C:\Users\Administrator\Documents\IISExpress\config\aspnet.config
日志: 使用 C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config 的计算机配置文件。
日志: 在应用程序配置文件中找到重定向: 4.4.0.0 已重定向到 5.0.0.0。
日志: 策略后引用: EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
日志: 尝试下载新的 URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/root/8f0d007c/83612a6c/EntityFramework.DLL。
日志: 尝试下载新的 URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/root/8f0d007c/83612a6c/EntityFramework/EntityFramework.DLL。
日志: 尝试下载新的 URL file:///D:/SourceProject/chuxing_ver1/trunk/TravelWebApi/TravelWebApi/bin/EntityFramework.DLL。
警告: 比较程序集名称时发生不匹配: 主版本
错误: 未能完成程序集的安装(hr = 0x80131040)。探测终止。

                 StackTrace:
                      在 System.Configuration.TypeUtil.GetTypeWithReflectionPermission(IInternalConfigHost host, String typeString, Boolean throwOnError)
                      在 System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory.Init(RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord)
                      在 System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory.InitWithRestrictedPermissions(RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord)
                      在 System.Configuration.RuntimeConfigurationRecord.CreateSectionFactory(FactoryRecord factoryRecord)
                      在 System.Configuration.BaseConfigurationRecord.FindAndEnsureFactoryRecord(String configKey, Boolean& isRootDeclaredHere)
                 InnerException:
 
 
 
更新成ef6后:
“System.Data.Entity.Core.MetadataException”类型的异常在 mscorlib.dll 中发生,但未在用户代码中进行处理

其他信息: 指定的架构无效。错误:


Chemapao.ssdl(2,2) : 错误 0152: 未找到具有固定名称“Devart.Data.MySql”的 ADO.NET 提供程序的实体框架提供程序。请确保在应用程序配置文件的“entityFramework”节中注册了该提供程序。有关详细信息,请参阅 http://go.microsoft.com/fwlink/?LinkId=260882。 
 
 
 
改为:
{"无法为具有固定名称“MySql.Data.MySqlClient”的 ADO.NET 提供程序加载在应用程序配置文件中注册的实体框架提供程序类型“MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity.EF6, Version=6.9.3.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d”。请确保使用限定程序集的名称且该程序集对运行的应用程序可用。有关详细信息,请参阅 http://go.microsoft.com/fwlink/?LinkId=260882。"}
 
{"创建 entityFramework 的配置节处理程序时出错: 在应用程序配置中使用不同的提供程序类型名称多次指定固定名称“MySql.Data.MySqlClient”的提供程序。对于每个已配置的提供程序,提供程序类型名称必须唯一。 (D:\\SourceProject\\chuxing_ver1\\trunk\\TravelWebApi\\TravelWebApi\\web.config line 123)"}
 
 
{"未能加载文件或程序集“MySql.Data.Entity.EF6, Version=6.9.3.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d”或它的某一个依赖项。找到的程序集清单定义与程序集引用不匹配。 (异常来自 HRESULT:0x80131040)":"MySql.Data.Entity.EF6, Version=6.9.3.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d"}
 
未能加载文件或程序集“MySql.Data.Entity.EF6, Version=6.9.8.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d”或它的某一个依赖项。找到的程序集清单定义与程序集引用不匹配。 (异常来自 HRESULT:0x80131040)



原标题:我的ef连接mysql之旅

关键词:MYSQL

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

离岸帐户提现:https://www.goluckyvip.com/tag/37308.html
离岸账户办理:https://www.goluckyvip.com/tag/37309.html
离岸账户避税:https://www.goluckyvip.com/tag/37310.html
离岸账户查询:https://www.goluckyvip.com/tag/37311.html
离岸账户电汇:https://www.goluckyvip.com/tag/37312.html
离岸账户费用:https://www.goluckyvip.com/tag/37313.html
武陵山大裂谷周围景点 武陵山大裂谷周围景点图片:https://www.vstour.cn/a/411233.html
南美旅游报价(探索南美洲的旅行费用):https://www.vstour.cn/a/411234.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流