The ADO.NET provider with the invariant name "System.Data.SqlServerCe.4.0" cannot be loaded

The Entity Framework provider type System.Data.Entity.SqlServerCompact.SqlCeProviderServices, EntityFramework.SqlServerCompact "is registered in the application configuration file for the ADO.NET provider with the invariant name" System.Data.SqlServerCe.4.0 "cannot be loaded. Make sure that the name is used for assembly and that assembly is available for the running application.

Above is the error message I get when I try to create metadata using the Breeze / Entity Framework. Nugget seems to have messed up something, but it’s not obvious, and it’s not obvious where he is trying to read the assembly. Any ideas would be welcome.

+6
source share
2 answers

I had the same problem. You have installed Sql Compact, but you are missing the EntityFramework extension for Sql Compact. You need to install it through the package manager console or nuget package manager. Console script:

Install-Package EntityFramework.SqlServerCompact 
+13
source

I received this error message when I tried to execute the update-database command in the package manager console for the first EF code project. While searching for this particular error message, I kept returning to this quest, but setting the EntityFramework.SqlServerCompact native did not resolve it in my script.

, , ( -), EF, .

, , , , , , .

, , , !

0

Source: https://habr.com/ru/post/1546334/


All Articles