I am trying to add a migration (for the first time) to a project using Entity Framework 6.0.2 for SQL Server Compact (code first). The application is having no problems comm
I just spent half a day trying to get SqlServerCe 4.0 SP1 aka 4.0.0.1 to work without above exceptions. Finally solved, hope it'd help someone else.
Copy "Program Files (x86)\Microsoft SQL Server Compact Edition\v4.0\Private" amd64
and x86
to bin
folder of your web app and include them in project (so that they become deployable)
Do not copy "System.Data.SqlServerCe.dll" and "System.Data.SqlServerCe.Entity.dll"
web.config
answers above are valid BUT "Version=4.0.0.1" didn't work for me, instead just "4.0"