Connecting Windows Mobile 5.0 with MySQL Server

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for MySQL
Post Reply
Guest

Connecting Windows Mobile 5.0 with MySQL Server

Post by Guest » Fri 07 Jul 2006 11:58

Hi!

I'm developing an application wich connects from my Pocket-PC (Windows Mobile 5.0, .NET Compact Framework) to a MySQL-Database (MySQL 5.0) in the Visual Studio 2005 c#.
Therefore I downloaded the MySQLDirect .NET Provider and started:

1. I linked to the "CoreLab.MySQL.dll".
2. I put a "using CoreLab.MySQL.dll" as a preprocessor.

But when tyring to definde a new Connection with

CoreLab.MySql.MySqlConnection foo = new CoreLab.MySql.MySqlConnection();

I get an error while building (translated from the German error-text):

Error 1: the type "System.Data.Common.DbConnection" is defined on not referenced assembly. Insert a link to the assembly "System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089".

Following those steps in "normal" Windows application wokrs very finde; but using it in the .NET Compact Framework is tricky.

Thank you very much for your replies,

yours Ulric.

Alexey
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Post by Alexey » Fri 07 Jul 2006 13:51

You should have downloaded mobile version of MySQLDirect .NET. Have you?

Ulric K.
Posts: 1
Joined: Fri 07 Jul 2006 11:46

Post by Ulric K. » Fri 07 Jul 2006 14:03

I didn't see that there is a special mobile version. Thanks! Everything is working fine.

thx, Ulric

Alexey
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Post by Alexey » Fri 07 Jul 2006 14:09

You are welcome.

Post Reply