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.
This can be solved confirming following 2 points:
System.Data.SqlServerCenamespace added tothe References folder of your application. If its not there you
may right click the References folder and select Add references
option. From the popup window go to .Net tab and select
System.Data.SqlServerCefrom the list and click OK to add the namespace to theproject.
using System.Data.SqlServerCe;tothe top of your code behind file which uses the
System.Data.SqlServerCe namespace.