[mono-android] Issue with XmlSerializer

Jonathan Pryor jonp at xamarin.com
Wed Jun 27 13:34:14 UTC 2012


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



More information about the Monodroid mailing list