Hi, Linking with LinkSdkOnly solves the problem!!
It's fine with me, but this means that somewhere you're removing mandatory classes with LinkEverythink option. Best, Patrick. -----Message d'origine----- De : monodroid-boun...@lists.ximian.com [mailto:monodroid-boun...@lists.ximian.com] De la part de Jonathan Pryor Envoyé : mercredi 27 juin 2012 15:34 À : Discussions related to Mono for Android Objet : Re: [mono-android] Issue with XmlSerializer On Jun 27, 2012, at 6:25 AM, Pattt wrote: > I'm using XmlSerializer to serialise my objects thru a stream. > > XmlSerializer xs = new XmlSerializer(this.GetType()); > > This works perfectly in DEBUG mode, but in RELEASE mode, It throws a reflexion exception. Do you have LinkSdkOnly set? Or Link everything? http://docs.xamarin.com/android/advanced_topics/linking Linking everything may remove some of your members. It's also possible that there's a linker bug and we're removing XML serialization code when we shouldn't be. Do you have a full stack trace for when it throws the exception? Thanks, - Jon _______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid _______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid