Bug 37300 - ObservableCollection<T> can't be deserialized with a BinaryFormatter
Summary: ObservableCollection<T> can't be deserialized with a BinaryFormatter
Status: RESOLVED FIXED
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
URL:
Depends on:
Blocks:
 
Reported: 2015-12-28 10:45 UTC by Fluendo dev team
Modified: 2016-01-04 14:03 UTC (History)
3 users (show)

Tags:
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:
Status:
RESOLVED FIXED

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=3.0.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35'."


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

namespace System.Collections.ObjectModel
{
	[TypeForwardedFrom ("WindowsBase, Version=3.0.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35")]
	[Serializable]
[...]
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