Weird serialization error

Nov 20, 2008 at 9:04 PM
Hi

I'm running ThreeSharp on an Amazon EC2 Windows instance, and it runs well for a few minutes, but then IIS goes into a tailspin and stops responding and errors like below appear in the application log:

I'm not trying to serialize the object, and the error seems to be fired before the application code is even touched. An IISreset sorts the problem out, but only for a few more minutes. Has anyone seen this before?

An unhandled exception occurred and the process was terminated.

Application ID: DefaultDomain

Process ID: 2880

Exception: System.Runtime.Serialization.SerializationException

Message: Type 'Affirma.ThreeSharp.ThreeSharpException' in Assembly 'Affirma.ThreeSharp, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' is not marked as serializable.

StackTrace:    at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter)
   at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.Serialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter)
   at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck)
   at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph, Header[] headers, Boolean fCheck)
   at System.Runtime.Remoting.Channels.CrossAppDomainSerializer.SerializeObject(Object obj, MemoryStream stm)
   at System.AppDomain.Serialize(Object o)
   at System.AppDomain.MarshalObject(Object o)


For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.