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
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