[Mono-osx] A Bug?

Sean Hignett seanhig at geminibay.com
Sat Oct 20 13:24:08 EDT 2007


This is happening on my app since I upgraded to 1.2.5.1 (running on  
OSX).

Didn't happen in 1.2.4

Is this a feature or a bug?  according to the SortedList msdn docs,  
this should all be serializable.  No?

System.Runtime.Serialization.SerializationException: Type  
System.Collections.SortedList+ListValues is not marked as Serializable.
   at  
System 
.Runtime 
.Serialization.Formatters.Binary.BinaryCommon.CheckSerializable  
(System.Type type, ISurrogateSelector selector, StreamingContext  
context) [0x00000]
   at  
System 
.Runtime.Serialization.Formatters.Binary.ObjectWriter.GetObjectData  
(System.Object obj,  
System.Runtime.Serialization.Formatters.Binary.TypeMetadata& metadata,  
System.Object& data) [0x00000]
   at  
System 
.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteObject  
(System.IO.BinaryWriter writer, Int64 id, System.Object obj) [0x00000]
   at  
System 
.Runtime 
.Serialization.Formatters.Binary.ObjectWriter.WriteObjectInstance  
(System.IO.BinaryWriter writer, System.Object obj, Boolean  
isValueObject) [0x00000]
   at  
System 
.Runtime 
.Serialization.Formatters.Binary.ObjectWriter.WriteQueuedObjects  
(System.IO.BinaryWriter writer) [0x00000]
   at  
System 
.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteObjectGraph  
(System.IO.BinaryWriter writer, System.Object obj,  
System.Runtime.Remoting.Messaging.Header[] headers) [0x00000]
   at  
System 
.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize  
(System.IO.Stream serializationStream, System.Object graph,  
System.Runtime.Remoting.Messaging.Header[] headers) [0x00000]
   at  
System 
.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize  
(System.IO.Stream serializationStream, System.Object graph) [0x00000]
   at System.Web.UI.ObjectStateFormatter+BinaryObjectFormatter.Write  
(System.IO.BinaryWriter w, System.Object o,  
System.Web.UI.WriterContext ctx) [0x00000]
   at System.Web.UI.ObjectStateFormatter+ObjectFormatter.WriteObject  
(System.IO.BinaryWriter w, System.Object o,  
System.Web.UI.WriterContext ctx) [0x00000]
   at System.Web.UI.ObjectStateFormatter+HashtableFormatter.Write  
(System.IO.BinaryWriter w, System.Object o,  
System.Web.UI.WriterContext ctx) [0x00000]
   at System.Web.UI.ObjectStateFormatter+ObjectFormatter.WriteObject  
(System.IO.BinaryWriter w, System.Object o,  
System.Web.UI.WriterContext ctx) [0x00000]
   at System.Web.UI.ObjectStateFormatter+PairFormatter.Write  
(System.IO.BinaryWriter w, System.Object o,  
System.Web.UI.WriterContext ctx) [0x00000]
   at System.Web.UI.ObjectStateFormatter+ObjectFormatter.WriteObject  
(System.IO.BinaryWriter w, System.Object o,  
System.Web.UI.WriterContext ctx) [0x00000]
   at System.Web.UI.ObjectStateFormatter+TripletFormatter.Write  
(System.IO.BinaryWriter w, System.Object o,  
System.Web.UI.WriterContext ctx) [0x00000]
   at System.Web.UI.ObjectStateFormatter+ObjectFormatter.WriteObject  
(System.IO.BinaryWriter w, System.Object o,  
System.Web.UI.WriterContext ctx) [0x00000]
   at System.Web.UI.ObjectStateFormatter+ArrayListFormatter.Write  
(System.IO.BinaryWriter w, System.Object o,  
System.Web.UI.WriterContext ctx) [0x00000]
   at System.Web.UI.ObjectStateFormatter+ObjectFormatter.WriteObject  
(System.IO.BinaryWriter w, System.Object o,  
System.Web.UI.WriterContext ctx) [0x00000]
   at System.Web.UI.ObjectStateFormatter+TripletFormatter.Write  
(System.IO.BinaryWriter w, System.Object o,  
System.Web.UI.WriterContext ctx) [0x00000]
   at System.Web.UI.ObjectStateFormatter+ObjectFormatter.WriteObject  
(System.IO.BinaryWriter w, System.Object o,  
System.Web.UI.WriterContext ctx) [0x00000]
   at System.Web.UI.ObjectStateFormatter+ArrayListFormatter.Write  
(System.IO.BinaryWriter w, System.Object o,  
System.Web.UI.WriterContext ctx) [0x00000]
   at System.Web.UI.ObjectStateFormatter+ObjectFormatter.WriteObject  
(System.IO.BinaryWriter w, System.Object o,  
System.Web.UI.WriterContext ctx) [0x00000]
   at System.Web.UI.ObjectStateFormatter+TripletFormatter.Write  
(System.IO.BinaryWriter w, System.Object o,  
System.Web.UI.WriterContext ctx) [0x00000]
   at System.Web.UI.ObjectStateFormatter+ObjectFormatter.WriteObject  
(System.IO.BinaryWriter w, System.Object o,  
System.Web.UI.WriterContext ctx) [0x00000]
   at System.Web.UI.ObjectStateFormatter+ArrayListFormatter.Write  
(System.IO.BinaryWriter w, System.Object o,  
System.Web.UI.WriterContext ctx) [0x00000]
   at System.Web.UI.ObjectStateFormatter+ObjectFormatter.WriteObject  
(System.IO.BinaryWriter w, System.Object o,  
System.Web.UI.WriterContext ctx) [0x00000]
   at System.Web.UI.ObjectStateFormatter+TripletFormatter.Write  
(System.IO.BinaryWriter w, System.Object o,  
System.Web.UI.WriterContext ctx) [0x00000]
   at System.Web.UI.ObjectStateFormatter+ObjectFormatter.WriteObject  
(System.IO.BinaryWriter w, System.Object o,  
System.Web.UI.WriterContext ctx) [0x00000]
   at System.Web.UI.ObjectStateFormatter+ArrayListFormatter.Write  
(System.IO.BinaryWriter w, System.Object o,  
System.Web.UI.WriterContext ctx) [0x00000]
   at System.Web.UI.ObjectStateFormatter+ObjectFormatter.WriteObject  
(System.IO.BinaryWriter w, System.Object o,  
System.Web.UI.WriterContext ctx) [0x00000]
   at System.Web.UI.ObjectStateFormatter+TripletFormatter.Write  
(System.IO.BinaryWriter w, System.Object o,  
System.Web.UI.WriterContext ctx) [0x00000]
   at System.Web.UI.ObjectStateFormatter+ObjectFormatter.WriteObject  
(System.IO.BinaryWriter w, System.Object o,  
System.Web.UI.WriterContext ctx) [0x00000]
   at System.Web.UI.ObjectStateFormatter+ArrayListFormatter.Write  
(System.IO.BinaryWriter w, System.Object o,  
System.Web.UI.WriterContext ctx) [0x00000]
   at System.Web.UI.ObjectStateFormatter+ObjectFormatter.WriteObject  
(System.IO.BinaryWriter w, System.Object o,  
System.Web.UI.WriterContext ctx) [0x00000]
   at System.Web.UI.ObjectStateFormatter+TripletFormatter.Write  
(System.IO.BinaryWriter w, System.Object o,  
System.Web.UI.WriterContext ctx) [0x00000]
   at System.Web.UI.ObjectStateFormatter+ObjectFormatter.WriteObject  
(System.IO.BinaryWriter w, System.Object o,  
System.Web.UI.WriterContext ctx) [0x00000]
   at System.Web.UI.ObjectStateFormatter+PairFormatter.Write  
(System.IO.BinaryWriter w, System.Object o,  
System.Web.UI.WriterContext ctx) [0x00000]
   at System.Web.UI.ObjectStateFormatter+ObjectFormatter.WriteObject  
(System.IO.BinaryWriter w, System.Object o,  
System.Web.UI.WriterContext ctx) [0x00000]
   at System.Web.UI.ObjectStateFormatter+PairFormatter.Write  
(System.IO.BinaryWriter w, System.Object o,  
System.Web.UI.WriterContext ctx) [0x00000]
   at System.Web.UI.ObjectStateFormatter+ObjectFormatter.WriteObject  
(System.IO.BinaryWriter w, System.Object o,  
System.Web.UI.WriterContext ctx) [0x00000]
   at System.Web.UI.ObjectStateFormatter.SerializeValue  
(System.IO.BinaryWriter w, System.Object o) [0x00000]
   at System.Web.UI.ObjectStateFormatter.Serialize (System.IO.Stream  
outputStream, System.Object stateGraph) [0x00000]
   at System.Web.UI.ObjectStateFormatter.Serialize (System.Object  
stateGraph) [0x00000]
   at System.Web.UI.HiddenFieldPageStatePersister.Save () [0x00000]
   at System.Web.UI.Page.SavePageStateToPersistenceMedium  
(System.Object viewState) [0x00000]
   at System.Web.UI.Page.SavePageViewState () [0x00000]
   at System.Web.UI.Page.InternalProcessRequest () [0x00000]
   at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext  
context) [0x00000] 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20071020/f47b7f91/attachment-0001.html 


More information about the Mono-osx mailing list