|
-
May 21st, 2005, 02:05 PM
#1
Thread Starter
PowerPoster
interesting...missingmethodexception?
hi there.
Sorry if i have posted in the wrong forum.
Basically, i am developin a SQL SERVER CE application.
I have added a reference to SQLSERVERCE.DLL (using Visual C# to develop)
the problem i am having is that I cannot either open a connection or create a database. Everytime i do this, i get a missing method exception
any ideas what I am doing? All i have done so far is to either open a connection or create a database using SQLSERVERCE
Thanks!
-
May 21st, 2005, 04:20 PM
#2
PowerPoster
Re: interesting...missingmethodexception?
Not sure of the exact name, but have you referenced the System.Data.Common? (the CE version, not the standard one)
-
May 21st, 2005, 06:19 PM
#3
Thread Starter
PowerPoster
Re: interesting...missingmethodexception?
ive tried that too
-
May 22nd, 2005, 12:07 PM
#4
PowerPoster
Re: interesting...missingmethodexception?
You are using a SqlCEConnection object and not the regular SqlConnection object right?
There are so many variables, can you show some code?
-
May 22nd, 2005, 12:22 PM
#5
Thread Starter
PowerPoster
Re: interesting...missingmethodexception?
lol yes im using the sqlCE connection object!
when it gets to creating the SQLCEEngine object, it gives me that error
Code:
try
{
SqlCeEngine theEngine = new SqlCeEngine("Data Source = Test.sdf");
theEngine.CreateDatabase();
SqlCeConnection theConn = new SqlCeConnection("Test.sdf");
theConn.Open();
theConn.Close();
}
catch (Exception a)
{
MessageBox.Show(a.ToString());
}
-
May 26th, 2005, 08:47 PM
#6
PowerPoster
Re: interesting...missingmethodexception?
I will look at some code I have at work tomorrow and see if I notice anything special.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|