[Mono-list] OnDeserialized exception

Robert Jordan robertj at gmx.net
Wed Oct 17 11:50:18 EDT 2007


Jonathan Gagnon wrote:
> Lately, I started using the OnDeserialized event to do some stuff after an
> object is deserialized.  It works fine when I compile it on my machine,
> unfortunately, when compiled on our build machine, I get the following error
> when deserializing my object with mono :
>  
> System.NotSupportedException: Collection is read-only
>   at System.Array.InternalArray__RemoveAt[Object] (Int32 index) [0x00000] in
> /tmp/scratch/BUILD/mono-1.2.3.1/mcs/class/corlib/System/Array.cs:131

OnDeserialized was not supported in 1.2.3.1. Please update to the
latest Mono 1.2.5.1.

Robert



More information about the Mono-list mailing list