After update my MVC4 application (.NET 4.0) with NuGet Package Manager from entity framework (Code First) 5 to 6, I get follow error on start of the application:
- No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.OleDb'.
But in the web.config, I have only the SqlClient Provider registered:
<connectionStrings>
<add name="DefaultConnection" providerName="System.Data.SqlClient" connectionString="Data Source=.\SQLEXPRESS;Database=db1;Trusted_Connection=True;Integrated Security=True;MultipleActiveResultSets=True" />
</connectionStrings>
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework">
<parameters>
<parameter value="Data Source=.\SQLEXPRESS; Integrated Security=True; MultipleActiveResultSets=True" />
</parameters>
</defaultConnectionFactory>
<providers>
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
</providers></entityFramework>
Why appears a Error for the OleDB Provider?
Note: I have this problem in solutions, on which the mvc project acess to the DB over a second project(library). Both project have the EF Packeage installed.