SqlServerCe

G

Guest

Guest
Archived from groups: microsoft.public.pocketpc (More info?)

I created a PocketPc Application, Visual Studio Widbey, C# project.

I have a SqlServerCe database.
I have System.Data.SqlServeCe referenced in my application:

I keep getting this error at the line:
Application.Run(new Form1());

The located assembly's manifest definition with name 'System.Data.SqlServerCe, Version=3.0.3600.0, Culture=neutral, PublicKeyToken=3be235df1c8d2ad3, Retargetable=Yes' does not match the assembly reference.

Anyone have any Ideas?

In Program.cs I have the following code:
using System;
using System.Windows.Forms;

namespace PocketPCApplication3
{
static class EntryPoint
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.Run(new Form1());
}
}
}


In Form1 I have the code:

using System;
using System.Drawing;
using System.Collections;
using System.Windows.Forms;
using System.Data;
using System.Data.SqlServerCe ;

private void Form1_Activated(object sender, EventArgs e)
{
SqlCeConnection myConnect = new SqlCeConnection("live_mobileDataSet");
System.Data.SqlServerCe.SqlCeCommand myCMD = new SqlCeCommand("SELECT ID, Text FROM FolderTable", myConnect);
myConnect.Open();

SqlCeDataReader myReader = myCMD.ExecuteReader();

do
{
Console.WriteLine("\t{0}\t{1}", myReader.GetName(0), myReader.GetName(1));

while (myReader.Read())
Console.WriteLine("\t{0}\t{1}", myReader.GetInt32(0), myReader.GetString(1));

} while (myReader.NextResult());

myReader.Close();
myConnect.Close();

}

--
Message posted via http://www.pocketpcjunkies.com
 

Rob

Distinguished
Dec 31, 2007
277
0
18,930
Archived from groups: microsoft.public.pocketpc (More info?)

Try using a try-catch block and using an exception handling method to display
a more meaningful error message

In message <1fdea53605264e939715b71ff6e0e2bf@PocketPCJunkies.com>, "Bill
Behning via PocketPCJunkies.com" <forum@PocketPCJunkies.com> wrote:
>
> I created a PocketPc Application, Visual Studio Widbey, C# project.
>
> I have a SqlServerCe database.
> I have System.Data.SqlServeCe referenced in my application:
>
> I keep getting this error at the line:
> Application.Run(new Form1());
>
> The located assembly's manifest definition with name
'System.Data.SqlServerCe, Version=3.0.3600.0, Culture=neutral,
PublicKeyToken=3be235df1c8d2ad3, Retargetable=Yes' does not match the assembly
reference.
>
> Anyone have any Ideas?
>
> In Program.cs I have the following code:
> using System;
> using System.Windows.Forms;
>
> namespace PocketPCApplication3
> {
> static class EntryPoint
> {
> /// <summary>
> /// The main entry point for the application.
> /// </summary>
> [STAThread]
> static void Main()
> {
> Application.Run(new Form1());
> }
> }
> }
>
>
> In Form1 I have the code:
>
> using System;
> using System.Drawing;
> using System.Collections;
> using System.Windows.Forms;
> using System.Data;
> using System.Data.SqlServerCe ;
>
> private void Form1_Activated(object sender, EventArgs e)
> {
> SqlCeConnection myConnect = new
SqlCeConnection("live_mobileDataSet");
> System.Data.SqlServerCe.SqlCeCommand myCMD = new
SqlCeCommand("SELECT ID, Text FROM FolderTable", myConnect);
> myConnect.Open();
>
> SqlCeDataReader myReader = myCMD.ExecuteReader();
>
> do
> {
> Console.WriteLine("\t{0}\t{1}", myReader.GetName(0),
myReader.GetName(1));
>
> while (myReader.Read())
> Console.WriteLine("\t{0}\t{1}", myReader.GetInt32(0),
myReader.GetString(1));
>
> } while (myReader.NextResult());
>
> myReader.Close();
> myConnect.Close();
>
> }
>
> --
> Message posted via http://www.pocketpcjunkies.com
--
Posted with Ink Spot (for PocketPC) from DejaVu Software, Inc.
Usenet wherever you are - http://www.dejavusoftware.com/
 
G

Guest

Guest
Archived from groups: microsoft.public.pocketpc (More info?)

I have used a Try Catch block, and the exception message is:
The located assembly's manifest definition with name 'System.Data.SqlServerCe, Version=3.0.3600.0, Culture=neutral, PublicKeyToken=3be235df1c8d2ad3, Retargetable=Yes' does not match the assembly reference.

--
Message posted via http://www.pocketpcjunkies.com
 
G

Guest

Guest
Archived from groups: microsoft.public.pocketpc (More info?)

Try post to microsoft.public.pocketpc.developer newsgroup instead.

--
Email: developer@jointsense.com.hk
Homepage: http://www.jointsense.com.hk/
GMT: +8

"Bill Behning via PocketPCJunkies.com" <forum@PocketPCJunkies.com> wrote in
message news:1c86c15125084386a6697cb2340a16e4@PocketPCJunkies.com...
>I have used a Try Catch block, and the exception message is:
> The located assembly's manifest definition with name
> 'System.Data.SqlServerCe, Version=3.0.3600.0, Culture=neutral,
> PublicKeyToken=3be235df1c8d2ad3, Retargetable=Yes' does not match the
> assembly reference.
>
> --
> Message posted via http://www.pocketpcjunkies.com
 
G

Guest

Guest
Archived from groups: microsoft.public.pocketpc (More info?)

Try post to microsoft.public.pocketpc.developer newsgroup instead.

--
Email: developer@jointsense.com.hk
Homepage: http://www.jointsense.com.hk/
GMT: +8

"Bill Behning via PocketPCJunkies.com" <forum@PocketPCJunkies.com> wrote in
message news:1c86c15125084386a6697cb2340a16e4@PocketPCJunkies.com...
>I have used a Try Catch block, and the exception message is:
> The located assembly's manifest definition with name
> 'System.Data.SqlServerCe, Version=3.0.3600.0, Culture=neutral,
> PublicKeyToken=3be235df1c8d2ad3, Retargetable=Yes' does not match the
> assembly reference.
>
> --
> Message posted via http://www.pocketpcjunkies.com