[Mono-list] formatter.Serialize
Warren Matthews
warren.matthews@oit.gatech.edu
Sat, 13 Mar 2004 23:10:36 -0500
Hi
I'm stuck trying to serialize a hash table. I found an example at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/
html/
frlrfsystemruntimeserializationformatterssoapsoapformatterclassserialize
topic.asp
But I get
$ mcs -r System.Runtime.Serialization.Formatters.Soap.dll Test.cs
Compilation succeeded
$ mono Test.exe
Unhandled Exception: System.ArgumentException: Cannot use prefix with
an empty namespace.
in <0x00127> System.Xml.XmlTextWriter:WriteStartAttribute
(string,string,string)
in <0x00017> System.Xml.XmlWriter:WriteAttributeString
(string,string,string,string)
in <0x0011f>
System.Runtime.Serialization.Formatters.Soap.SoapWriter:WriteEnvelope
()
in <0x0000e>
System.Runtime.Serialization.Formatters.Soap.SoapWriter:Run ()
in <0x0016c>
System.Runtime.Serialization.Formatters.Soap.ObjectWriter:Serialize
(object)
in <0x0013d>
System.Runtime.Serialization.Formatters.Soap.SoapFormatter:Serialize
(System.IO.Stream,object,System.Runtime.Remoting.Messaging.Header[])
in <0x00019>
System.Runtime.Serialization.Formatters.Soap.SoapFormatter:Serialize
(System.IO.Stream,object)
in <0x000e8> .App:Serialize ()
in <0x00007> .App:Main ()
I'm wondering if I need to add something to the example code, but it
looks pretty complete to me. Any suggestions?