[Mono-bugs] [Bug 438594] New: Cannot deserialise base64Binary XmlText

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Oct 24 01:35:23 EDT 2008


           Summary: Cannot deserialise base64Binary XmlText
           Product: Mono: Class Libraries
           Version: 1.9
          Platform: i686
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.XML
        AssignedTo: atsushi at ximian.com
        ReportedBy: ayakeley at cisco.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Community User

Description of Problem:

I have a field in my structure declared like this:
  [XmlText(DataType="base64Binary")] public byte[] Value;

Steps to reproduce the problem:
1. A .NET program serialises the structure and sends it to the server
2. The server (which uses Mono) attempts to deserialise the structure.

Actual Results:
When Mono comes to deserialise it, it throws exception:

 System.InvalidOperationException: Cannot serialize object of type 'WebPage'.
Consider changing type of XmlText member 'Value' from 'Byte[]' to string or
string array
  at System.Xml.Serialization.XmlReflectionImporter.ImportClassMapping
(System.Xml.Serialization.TypeData typeData,
System.Xml.Serialization.XmlRootAttribute root, System.String defaultNamespace)
  at System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping
(System.Xml.Serialization.TypeData typeData,
System.Xml.Serialization.XmlRootAttribute root, System.String defaultNamespace)

Expected Results:
Mono should deserialise it correctly, using Base64 to decode the XML element
contents into a "byte[]".

How often does this happen? 

Additional Information:
Mono Version: 2.0.50727.42; ASP.NET Version: 2.0.50727.42

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list