Cannot find namespace 'System.Data.SqlServerCe'

Viewed 70483

I did include the System.Data.SqlServerCe dll, put using System.Data.SqlServerCe; in my code, but when I open the .NET page I get:

The type or namespace name 'SqlServerCe' does not exist in the namespace 'System.Data' (are you missing an assembly reference?)

I have nave no idea how to fix this. Thanks in advance.

5 Answers

This is pretty late for answer. But I also faced the same kind of problem.
I am using Visual Studio 2012 and Visual Studio 2017 and I found the System.Data.SqlServerCe here.
The same directory for both Versions.

I edited @JesiMov Answer.

Right click the References folder and select Add Reference... option.
Go to the Assemblies | Extensions option on the left pane, then scroll to System.Data.SqlServerCe in the right pane.

Related