我已经用C#编写了一个程序集来执行MySQL数据库的所有数据访问。我已经成功地在我的C#winform桌面应用程序中使用了汇编(一个已编译的dll)。但它只适用于安装了“MySQL Connector Net 6.4.4”的电脑。MySQL实体框架错误 - 在配置中找不到指定的存储提供者,或者无效
我试图用我的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
是否在连接字符串具有的providerName =“System.Data .EntityClient“属性呢? – GemCer 2012-01-02 21:05:29
是的,我只是检查确定。 – Hoody 2012-01-02 22:27:57