MySQL-EntityFramework-Code-First icon indicating copy to clipboard operation
MySQL-EntityFramework-Code-First copied to clipboard

Unrecognized element 'providers'

Open wilsonxyz opened this issue 6 years ago • 0 comments

When i try to code, i got errors like this. System.TypeInitializationException: 'The type initializer for 'System.Data.Entity.Internal.AppConfig' threw an exception.' Inner Exception ConfigurationErrorsException: Unrecognized element 'providers'. here my app.config

<providers>        
        <provider invariantName="MySql.Data.MySqlClient"
            type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity.EF6"/>            
        <provider invariantName="System.Data.SqlClient"
            type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer"/>
      </providers>

please advice.

wilsonxyz avatar Jul 07 '19 05:07 wilsonxyz