[Mono-bugs] [Bug 704813] New: InvalidOperationException: To be XML serializable, types which inherit from IEnumerable must have an implementation of Add() at all levels of their inheritance hierarchy.
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sun Jul 10 17:42:15 EDT 2011
https://bugzilla.novell.com/show_bug.cgi?id=704813
https://bugzilla.novell.com/show_bug.cgi?id=704813#c0
Summary: InvalidOperationException: To be XML serializable,
types which inherit from IEnumerable must have an
implementation of Add() at all levels of their
inheritance hierarchy.
Classification: Mono
Product: Mono: Runtime
Version: 2.10.x
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: P5 - None
Component: generics
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: davyt23 at hotmail.co.uk
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML,
like Gecko) Chrome/14.0.798.0 Safari/535.1
Using the code provided under the .NET runtime everything works as intended,
however under mono the following exception is thrown when attempting to
deserialize an XML file:
System.Reflection.TargetInvocationException: Exception has been thrown by the
target of an invocation. ---> System.InvalidOperationException: There was an
error reflecting type 'WCell.RealmServer.Instances.InstanceConfig'. --->
System.InvalidOperationException: To be XML serializable, types which inherit
from IEnumerable must have an implementation of
Add(WCell.Constants.World.MapId) at all levels of their inheritance hierarchy.
Reproducible: Always
Steps to Reproduce:
1. Pull code from https://github.com/Pepsi1x1/MonoIEnumerableBugApp
2. Compile with mono
3. Execute the resulting binary
Actual Results:
A System.InvalidOperationException is thrown
Expected Results:
The XML file to be correctly deserialized
--
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