[Mono-bugs] [Bug 79278][Nor] New - XmlSerializer requires default public constructor on Mono, but not on MS.NET
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Mon Sep 4 12:29:02 EDT 2006
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by juraj at hotfeet.ch.
http://bugzilla.ximian.com/show_bug.cgi?id=79278
--- shadow/79278 2006-09-04 12:29:01.000000000 -0400
+++ shadow/79278.tmp.32410 2006-09-04 12:29:02.000000000 -0400
@@ -0,0 +1,32 @@
+Bug#: 79278
+Product: Mono: Class Libraries
+Version: 1.1
+OS:
+OS Details: FC5
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Sys.XML
+AssignedTo: atsushi at ximian.com
+ReportedBy: juraj at hotfeet.ch
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: XmlSerializer requires default public constructor on Mono, but not on MS.NET
+
+The attached testcase works on MS.NET (1.1 and 2.0), but throws on Mono
+(for both mcs- and gmcs-compiled binaries).
+
+Exception on Mono:
+------------------
+Unhandled Exception: System.InvalidOperationException: There was an error
+reflecting type 'SomeTest.Test'. ---> System.InvalidOperationException:
+SomeTest.Test cannot be serialized because it does not have a default
+public constructor
+ at System.Xml.Serialization.ReflectionHelper.CheckSerializableType
+(System.Type type, Boolean allowPrivateConstructors)
+ at System.Xml.Serialization.XmlReflectionImporter.ImportClassMapping
+(System.Xml.Serialization.TypeData typeData,
+System.Xml.Serialization.XmlRootAttribute root, System.String defaultNamespace)
More information about the mono-bugs
mailing list