[Mono-list] recent error (serialization)

Carl Olsen carl at carl-olsen.com
Thu Sep 15 07:25:29 EDT 2005


I'm using System.Xml.Serialization for all my config files.

using System;
using System.IO;
using System.Text;
using System.Web;
using System.Web.Caching;
using System.Xml.Serialization;
using System.Xml;
using System.Configuration;

When I run xsp --root /usr/lib/xsp/test everything works just fine, but when
I try it on my application (which has been running perfectly under Mono
1.1.8), it gives me the following error:

Server6:~ # xsp --root /home/carl/public_html
xsp
Listening on port: 8080
Listening on address: 0.0.0.0
Root directory: /home/carl/public_html
Hit Return to stop the server.
System.Runtime.Serialization.SerializationException: Type
System.Web.Compilation.CompilationException is not marked as Serializable.

Server stack trace:
in <0x000d4>
System.Runtime.Serialization.Formatters.Binary.BinaryCommon:CheckSerializabl
e (System.Type type, ISurrogateSelector selector, StreamingContext context)
in <0x00145>
System.Runtime.Serialization.Formatters.Binary.ObjectWriter:GetObjectData
(System.Object obj,
System.Runtime.Serialization.Formatters.Binary.TypeMetadata metadata,
System.Object data)
in <0x00044>
System.Runtime.Serialization.Formatters.Binary.ObjectWriter:WriteObject
(System.IO.BinaryWriter writer, Int64 id, System.Object obj)
in <0x00108>
System.Runtime.Serialization.Formatters.Binary.ObjectWriter:WriteObjectInsta
nce (System.IO.BinaryWriter writer, System.Object obj, Boolean
isValueObject)
in <0x0002d>
System.Runtime.Serialization.Formatters.Binary.ObjectWriter:WriteQueuedObjec
ts (System.IO.BinaryWriter writer)
in <0x00037>
System.Runtime.Serialization.Formatters.Binary.ObjectWriter:WriteObjectGraph
(System.IO.BinaryWriter writer, System.Object obj,
System.Runtime.Remoting.Messaging.Header[] headers)
in <0x00200>
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter:Serialize
(System.IO.Stream serializationStream, System.Object graph,
System.Runtime.Remoting.Messaging.Header[] headers)
in <0x00015>
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter:Serialize
(System.IO.Stream serializationStream, System.Object graph)
in <0x00068> System.Runtime.Remoting.RemotingServices:SerializeExceptionData
(System.Exception ex)

Exception rethrown at [0]:

in (wrapper xdomain-invoke) Mono.WebServer.XSPApplicationHost:ProcessRequest
(int,long,int,long,int,string,string,string,string,byte[],string,intptr,Mono
.WebServer.SslInformations)
in (wrapper remoting-invoke-with-check)
Mono.WebServer.XSPApplicationHost:ProcessRequest
(int,long,int,long,int,string,string,string,string,byte[],string,intptr,Mono
.WebServer.SslInformations)
in <0x0062c> Mono.WebServer.XSPWorker:Run (System.Object state)




More information about the Mono-list mailing list