here we are yet again. I am really fed up of this.

problem: how can i create a SQL Server CE mobile application? I cannot seem to be able to create a database or open a connection!

in VS.NET 2003 if i add a reference to System.Data.SqlServerCE.dll and System.Data.SqlClient.dll - I write this code:

private void CreateDatabase()
{
SqlCEEngine theEngine = new SqlCEEngine("Test.sdf");
theEngine.CreateDatabase();
}

everytime I do this, when it tries to create an object I get a missing method exception. I tried soo many ways but i could not get away from the missing method exception. What am I doing wrong?

Next, I tried VS2005 Beta 2 and it gives me a "missing assembly reference" exception.

?!?!?!?

whats going on?