[Mono-bugs] [Bug 642227] New: DataContractSerializer.ReadObject fails if it encounters an unknown property

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Sep 28 04:42:57 EDT 2010


https://bugzilla.novell.com/show_bug.cgi?id=642227

https://bugzilla.novell.com/show_bug.cgi?id=642227#c0


           Summary: DataContractSerializer.ReadObject fails if it
                    encounters an unknown property
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.8.x
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: CORLIB
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: eb1 at sil.org
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.10)
Gecko/20100915 Ubuntu/10.04 (lucid) Firefox/3.5

When DataContractSerializer.ReadObject encounters an unknown property in the
xml file it throws an exception:
"System.Runtime.Serialization.SerializationException: Deserializing type
'DataContractSerializerBug.SomeClass'. Expecting state 'EndElement'.
Encountered state 'Element' with name 'SomeProp' with namespace
'http://schemas.datacontract.org/2004/07/DataContractSerializerBug'" instead of
ignoring the unknown element.

Reproducible: Always

Steps to Reproduce:
See attachments

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


More information about the mono-bugs mailing list