EntityFramework: Unable to determine the provider name for the factory provider of type 'system.data.sqlclient.sqlclientfactory'

I have a website that uses Entity Framework and SQLServer. When I try to run the application on Azure, I get the following error:

Unable to determine the provider name for provider factory of type 'system.data.sqlclient.sqlclientfactory'. make sure that the ado.net provider is installed or registered in the application config. 

Everything is working fine on the premises.

0
entity-framework azure
source share
1 answer

I finally found that the error was caused by this section of the configuration (now I no longer use it):

  <system.data> <DbProviderFactories> <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> 

I deleted it and now it worked correctly.

+2
source share

All Articles