Results 1 to 6 of 6

Thread: interesting...missingmethodexception?

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Aug 2003
    Location
    Edinburgh, UK
    Posts
    2,773

    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!

  2. #2
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464

    Re: interesting...missingmethodexception?

    Not sure of the exact name, but have you referenced the System.Data.Common? (the CE version, not the standard one)

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Aug 2003
    Location
    Edinburgh, UK
    Posts
    2,773

    Re: interesting...missingmethodexception?

    ive tried that too

  4. #4
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464

    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?

  5. #5

    Thread Starter
    PowerPoster
    Join Date
    Aug 2003
    Location
    Edinburgh, UK
    Posts
    2,773

    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());
    }

  6. #6
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464

    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
  •  



Click Here to Expand Forum to Full Width