Bug 37300 - ObservableCollection<T> can't be deserialized with a BinaryFormatter
Summary: ObservableCollection<T> can't be deserialized with a BinaryFormatter
Alias: None
Product: iOS
Classification: Xamarin
Component: BCL Class Libraries ()
Version: XI 9.8 (tvOS / C7)
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Marek Safar
Depends on:
Reported: 2015-12-28 10:45 UTC by Fluendo dev team
Modified: 2016-01-04 14:03 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Fluendo dev team 2015-12-28 10:45:00 UTC
Trying to serialized/deserialize an ObservableCollection<T> throws the following Exception in the deserialization step:

"System.Runtime.Serialization.SerializationException: Unable to find assembly 'WindowsBase, Version=, Culture=Neutral, PublicKeyToken=31bf3856ad364e35'."

This seems to happend because ObsevableCollection is a forwarded type from WindowsBase:

namespace System.Collections.ObjectModel
	[TypeForwardedFrom ("WindowsBase, Version=, Culture=Neutral, PublicKeyToken=31bf3856ad364e35")]
Comment 1 Rolf Bjarne Kvinge [MSFT] 2016-01-04 10:33:39 UTC
@Marek, can you have a look? Maybe we can just remove the TypeForwardedFrom attribute for mobile assemblies.
Comment 2 Marek Safar 2016-01-04 14:03:15 UTC
Fixed in mono master