相关疑难解决方法(0)

EntityFramework,在配置中找不到指定的商店提供商,或者无效

我有一个Winform应用程序,我正在使用EntityFramework.应用程序在我的开发机器上运行得很好但是当我尝试在客户机的机器上运行时,我得到"在配置中找不到指定的存储提供程序,或者无效"错误.我已经与客户端分发了EntityFramework.dll.为什么我收到此错误?我没有将连接字符串放在app.config文件中,因为它是根据在运行时选择的数据库动态创建的.(我使用VistaDB作为数据库)

app.config如下:

<configuration>
<configSections>
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection,EntityFramework, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</configSections>
<connectionStrings>
 </connectionStrings>
 <entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" />
</entityFramework>
</configuration>
Run Code Online (Sandbox Code Playgroud)

c# entity-framework exception

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

部署使用LINQ to Entities的应用程序

我想使用L2E,因为它对我公司的应用非常方便,我创建了一个演示项目,演示确实在每台机器上运行但是当我说,按下一个按钮,其中包含一些使用该实体的代码我得到了这个错误:

specified store provider cannot be found in the configuration, or is not valid.
Run Code Online (Sandbox Code Playgroud)

请注意,我只在没有安装VS2008的机器上得到此错误,在这些机器上(VS2008的机器),该演示效果很好.任何建议表示赞赏.

我正在使用MySql服务器与Mysql Conector 6.3,并使用ADO.Net权利模型创建模型.

编辑

这是完整的错误跟踪:

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
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)
   --- …
Run Code Online (Sandbox Code Playgroud)

c# mysql linq-to-entities entity-framework winforms

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