Page 1 of 1

Version 4.20 and Mobile application

Posted: Fri 12 Oct 2007 07:02
by agebraad
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?

Posted: Fri 12 Oct 2007 07:18
by Alexey
Please add a reference to assembly 'System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

Posted: Fri 12 Oct 2007 08:29
by agebraad
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

Posted: Fri 12 Oct 2007 08:59
by Alexey
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?

Posted: Fri 12 Oct 2007 09:50
by agebraad
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.

Posted: Fri 12 Oct 2007 09:53
by Alexey
You are welcome.