相关疑难解决方法(0)

MySQL实体框架错误 - 在配置中找不到指定的商店提供程序,或者无效

我在C#中编写了一个程序集来执行MySQL数据库的所有数据访问.我在C#winform桌面应用程序中成功使用了程序集(已编译的dll).但它仅适用于安装了"MySQL Connector Net 6.4.4"的PC.

我试图在我的asp.net网站项目中使用相同的程序集.首先我得到一个关于缺少连接字符串的错误.通过将MySQL连接字符串添加到web.config文件可以轻松解决这个问题.我现在得到这个错误(下面列出的堆栈跟踪),我已经尝试将以下dll添加到我的bin文件夹来解决它但它不起作用.

MySql.Data.dll
MySql.Data.Entity.dll
MySql.Web.dll

System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. 
---> System.ArgumentException: The specified store provider cannot be found in the configuration, or is not valid. 
---> System.ArgumentException: Unable to find the requested .Net Framework Data Provider. It may not be installed. at System.Data.Common.DbProviderFactories.GetFactory(String providerInvariantName) at System.Data.EntityClient.EntityConnection.GetFactory(String providerString) 
--- End of inner exception stack trace 
Run Code Online (Sandbox Code Playgroud)

c# mysql entity-framework

12
推荐指数
2
解决办法
4万
查看次数

ORACLE和实体框架.错误:在配置中找不到指定的商店提供商或无效

在我的项目中,我一起使用oracle和实体框架.我的机器我的开发者机器win7和我的服务器win2008r2我安装了oracle beta实体框架和.net 4.0框架.

但是我的项目在本地计算机上工作,并且在服务器上不起作用而产生错误:

the specified store provider cannot be found in the configuration or is not valid 
SystemArgumentException unable to find the requested .net Framework data provider ...
Run Code Online (Sandbox Code Playgroud)

有人可以帮帮我吗?

.net oracle odp.net entity-framework-4

3
推荐指数
1
解决办法
2万
查看次数