SQL Server Compact connection error

sql-server-cevisual-studio-2008

I've just done a clean install of Visual C# 2008 SP1, Sql Compact 3.5 SP1 was also installed during the process. Nevertheless, when I try to connect to an sdf file:

SqlCeConnection conn = new SqlCeConnection(connectionString);

I get an exception:

Unable to load the native components of SQL Server Compact corresponding to the ADO.NET provider of version 8080. Install the correct version of SQL Server Compact. Refer to KB article 974247 for more details.

I'm a bit confused, what should I install/update, then?

Best Answer

Build 8080 is SP2, download and install both the x86 and x64 runtimes (if applicable) from http://www.microsoft.com/download/en/details.aspx?id=5783

Related Topic