[mono-android] property getValue error (reflecting)
Craig Dunn
craig.dunn at gmail.com
Wed Dec 19 17:25:25 UTC 2012
Hey,
have you read the information on Linking?
http://docs.xamarin.com/Android/Guides/Advanced_Topics/Linking
two things you can try
1) temporarily disable linking in the Project Options for your packaging
build configuration, see if that fixes the problem
2) if it does, add [Android.Runtime.Preserve(AllMembers=true)] to your
classes (and set the linking back to previous value - probably Link SDK
Assemblies)
hope that helps
cd
On Wed, Dec 19, 2012 at 2:52 AM, javitxin <javier at externalia.com> wrote:
> Hi,
>
> I have a problem when using my deveolped app..
>
> This is the stacktrace :
>
> + ex {System.ArgumentException: Get Method not found
> for 'ID_EMPLEADO'
> at System.Reflection.MonoProperty.GetValue (System.Object obj,
> System.Object[] index) [0x00000] in <filename unknown>:0
> at eGestionaMobile_Datos.DATOS.MONO.eGestionaTableAdapter.getCommandText
> (System.Object _objeto, IList`1 propiedades, eAccion _accion, System.String
> _where) [0x000ce] in D:\Proyectos
>
> Externalia\VS2010\eGestionaMobile\eGestionaMobile_Datos\eGestionaMobile_Datos\DATOS\MONO\eGestionaTableAdapter.cs:107
> } System.ArgumentException
>
> Let me explain my architecture.
>
> 1º layer) I have an table/object layer. Each table I have to use is
> included
> in this dll.
> 2º layer) I have a data engine layer to process all request. It uses the
> tables(objects) from 1º layer.
> 3º layer) I have a business layer that interacts with UI layer and data
> engine layer.
> 4º layer) UI layer...Layouts and activities and so on...
>
> So, I have 3 dlls apart from my UI layer.
>
> The error is given when my data engine layer uses an object from
> table/object layer to create a command text to insert into my sqlite. It
> uses reflection to get properties from the table/object and creates the
> insert.
>
> All my app goes fantastic when debugging on any device but when packaging
> and installing on device it crashes...when getting the value from the
> property.
>
> May I forget some configurating when packaging it? Why works fine when
> debugging it and fails when releasing app on device?
>
> Any help please?
>
>
>
>
> --
> View this message in context:
> http://mono-for-android.1047100.n5.nabble.com/property-getValue-error-reflecting-tp5712653.html
> Sent from the Mono for Android mailing list archive at Nabble.com.
> _______________________________________________
> Monodroid mailing list
> Monodroid at lists.ximian.com
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monodroid/attachments/20121219/7ddf7ffe/attachment.html>
More information about the Monodroid
mailing list