Thanks Josh,

 

Yes in fact the Fast Deploy option when turned off stopped that exception.
Now I have another problem . the -skiplink option does not stop the linker
from linking the classes inside the MySql.Data.CF.dll which results in other
exceptions coming from it when linking is enabled. Any Idea why that might
be happening?

 

I added: 

 

    <MandroidExtraArgs>-linkskip=MySql.Data.CF</MandroidExtraArgs>

 

to all the targets in the .csproj file that was referencing the connector.

 

Regarding services, this really is not a good option for us as they have to
be hosted somewhere. And what our goal is to have that app work completely
offline at some point. We have separation of the UI, business and
persistence layers and the persistence layer is swappable, but our first
goal is to connect to MySql. And once we got a working connection with it it
turns out the rest is just a matter of linking configuration. I hope J

 

Vladimir

 

From: monodroid-boun...@lists.ximian.com
[mailto:monodroid-boun...@lists.ximian.com] On Behalf Of Josh Handel
Sent: Thursday, December 08, 2011 4:01 PM
To: Discussions related to Mono for Android
Subject: Re: [mono-android] Using MySQL Connector

 

I would suggest putting a middle ware between your app and your DB.. Throw a
simple RESTful service between your mobile device and your MySQL DB.. This
will increase security, give you a clean separation of concerns and increase
the performance of your mobile app by decreasing the communications burdon
of your app.. 

 

Also, are you using Mono for Android 4.0 if you are, make sure Fast Deploy
is off... Your FileNotFoundException sounds related to fast deploy issues
around external assemblies.

 

 

Josh Handel

Mobile Architect

512.328.8181 | Main

512.328.0584 | Fax

512.577-6568 | Cell

 <https://webmail.catapultsystems.com/owa/UrlBlockedError.aspx>
www.catapultsystems.com

 

CATAPULT SYSTEMS INC.

THE MICROSOFT CONSULTING COMPANY

  _____  

From: monodroid-boun...@lists.ximian.com
[monodroid-boun...@lists.ximian.com] on behalf of Vladimir Dimitrov
[vlad.dimit...@gmail.com]
Sent: Thursday, December 08, 2011 6:49 AM
To: monodroid@lists.ximian.com
Subject: [mono-android] Using MySQL Connector

Hey guys,

 

I am trying to figure out what is the best way to connect to a MySQL server
from the Mono Android app I am creating. I had mixed success before. I am
experimenting with the mysql.data.cf.dll version of the connector which is
trimmed down version for Pocket PCs, so it gets less dependences on stuff
not available like System.Transactions which I don't need either way.

 

The problem is that when there is no linking the app seems to work fine. But
this should not be the way to proceed for production, so I looked at the
linking options and added linking of all the user and SDK assemblies and
-linkskip for the MySql.Data.CF assembly. But now when the package is
created and shipped to the device I get a FileNotfoundException about the
MySql assembly not being found at all.

 

Any ideas what should be done in this scenario?

 

Thanks,

Vladimir

_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to