Reputation: 2126
Recently i downloaded SQLServer Compact 3.5 from Microsoft web site, and i have already installed Visual Studio 2008. When i make a new Smart Device project and try to connect some Dataset to local database, the following error rises : "Error 1 Custom tool error: This operation requires a reference to SQL Server Compact 3.5. The project has a reference to a different version. Update the reference and try again."
i tried reinstalling Visual Studio 2008, but it did not work.
Upvotes: 1
Views: 1617
Reputation: 41
I had the same problem after update SQL server compact 3.5 to SP2.
The solution is to uninstall SP2 and install version without Service Pack and re-add the reference to SQL CE in project
Upvotes: 4
Reputation: 26
I had same problem, This problem is happen with SQL Compact service pack2, but you can use SP1 and use code to manipulate your database. It had been solved.
Upvotes: 1
Reputation: 67168
Delete the existing project reference to SQL CE, close the project, re-open the project and re-add the reference.
Upvotes: 0