This question is locked. New answers and comments are not allowed.
I have been using Telerik ORM 2011 Q3 reverse mapping with SQL CE 3.5 and it was working fine. We wanted to upgrade to SQL CE 4.0 and it is not working. It keeps looking for SQL CE 3.5 files. We are using default northwind database that comes with SQL CE 4.0 and so the DB is 4.0 but when i try to test the connection, it keeps giving error. We have added SQL CE 4.0 reference in App.cofnig and even added 4.0 files in references. Still no luck. Any suggestions?
Here is the stack trace
Backend=sqlce;ConnectionString=Data Source="C:\Program Files\Microsoft SQL Server Compact Edition\v4.0\Samples\Northwind.sdf"; provider=System.Data.SqlServerCe.4.0;
The connection could not be established. The reason was:
Unknown failure
Exception: Telerik.OpenAccess.OpenAccessException
Cause: System.Configuration.ConfigurationErrorsException: Database provider System.Data.SqlServerCe.SqlCeProviderFactory, System.Data.SqlServerCe, Version=3.5.1.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91 not installed properly (CLR=v4.0.30319 32bit). ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Data.SqlServerCe, Version=3.5.1.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies.
Here is the stack trace
Backend=sqlce;ConnectionString=Data Source="C:\Program Files\Microsoft SQL Server Compact Edition\v4.0\Samples\Northwind.sdf"; provider=System.Data.SqlServerCe.4.0;
The connection could not be established. The reason was:
Unknown failure
Exception: Telerik.OpenAccess.OpenAccessException
Cause: System.Configuration.ConfigurationErrorsException: Database provider System.Data.SqlServerCe.SqlCeProviderFactory, System.Data.SqlServerCe, Version=3.5.1.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91 not installed properly (CLR=v4.0.30319 32bit). ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Data.SqlServerCe, Version=3.5.1.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies.