Version 4.20 and Mobile application

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for MySQL
Post Reply
agebraad
Posts: 3
Joined: Fri 12 Oct 2007 06:44

Version 4.20 and Mobile application

Post by agebraad » Fri 12 Oct 2007 07:02

When I try to build an new mobile device application I get te following error. In my reference list I have CoreLab.Data and CoreLab.MySql.
In my using I have using CoreLab.MySql;
and one line of code :
private void button1_Click(object sender, EventArgs e)
{
MySqlConnection connection = new MySqlConnection();
}

Error 1 The type 'System.Data.Common.DbConnection' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

What can I do to get it work?

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

Post by Alexey » Fri 12 Oct 2007 07:18

Please add a reference to assembly 'System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

agebraad
Posts: 3
Joined: Fri 12 Oct 2007 06:44

Post by agebraad » Fri 12 Oct 2007 08:29

I have in my reference list:

C:\Program Files\Microsoft.NET\SDK\CompactFramework\v2.0\WindowsCE\System.Data.dll

Runtime version : 2.0.0.0
Version : 2.0.0.0

----
File version : 2.0.7045.0

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

Post by Alexey » Fri 12 Oct 2007 08:59

What are the versions of CoreLab.Data and CoreLab.MySql assemblies? Actually, CoreLab.Data.dll is not needed. Are you sure you've installed package for compact framework?

agebraad
Posts: 3
Joined: Fri 12 Oct 2007 06:44

Post by agebraad » Fri 12 Oct 2007 09:50

I had overlooked the separated version for compact framework. I have installed now this version and it seems to work. Thanks for the fast response. You can close this topic.

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

Post by Alexey » Fri 12 Oct 2007 09:53

You are welcome.

Post Reply