EntityFramework, the specified store provider cannot be found in the configuration or is invalid

I have a Winform application and I am using EntityFramework. The application works fine on my dev machine, but when I try to run it on the client computer, I get: "The specified store provider cannot be found in the configuration or is invalid." I distributed EntityFramework.dll with the client. Why am I getting this error? I do not put connection strings in the app.config file, because it is dynamically created based on the database selected at runtime. (I use VistaDB as a database)

The app.config file is located below:

<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> 
+6
source share
3 answers

I had this problem. I uninstalled Connector.NET and reinstalled it. Now it works.

+2
source

based on what type of database you are using, you need to provide Db ORB parameters that will be used in Entityframe work

  <system.data> <DbProviderFactories> <remove invariant="MySql.Data.MySqlClient" /> <add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory,MySql.Data" /> </DbProviderFactories> </system.data> 
0
source

To resolve this error, install Microsoft SQL Server Compact 4.0 on your client computer.

-1
source

All Articles