[Mono-bugs] [Bug 595508] New: Failed to set value of type System.Collections.ArrayList

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Apr 9 18:11:23 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=595508

http://bugzilla.novell.com/show_bug.cgi?id=595508#c0


           Summary: Failed to set value of type
                    System.Collections.ArrayList
    Classification: Mono
           Product: MonoTouch
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Class Libraries
        AssignedTo: gnorton at novell.com
        ReportedBy: wade at agilemedicine.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.1.249.1045 Safari/532.5

When trying to deserialize a WCF response that has a generic collection of the
same type as the parent class, an exception occurs:

"Failed to set value of type System.Collections.ArrayList for property at
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x00063] in
/Developer/MonoTouch/Source/mcs/class/corlib/System.Reflection/MonoMethod.cs:185 
  at System.Reflection.MonoProperty.SetValue (System.Object obj, System.Object
value, BindingFlags invokeAttr, System.Reflection.Binder binder,
System.Object[] index, System.Globalization.CultureInfo culture) [0x00064] in
/Developer/MonoTouch/Source/mcs/class/corlib/System.Reflection/MonoProperty.cs:341 
  at System.Reflection.PropertyInfo.SetValue (System.Object obj, System.Object
value, System.Object[] index) [0x00000] in
/Developer/MonoTouch/Source/mcs/class/corlib/System.Reflection/PropertyInfo.cs:102 
  at System.Runtime.Serialization.SerializationMap.SetValue
(System.Runtime.Serialization.DataMemberInfo dmi, System.Object obj,
System.Object value) [0x00010] in
/Developer/MonoTouch/Source/mcs/class/System.Runtime.Serialization/System.Runtime.Serialization/SerializationMap.cs:444"

Found a reference in your forums at:
http://forums.monotouch.net/yaf_postst319_Exception-registering-Collection-Type-when-invoking-call-to-WCF-web-service.aspx

Reproducible: Always

Steps to Reproduce:
1. Host WCF service that returns a class containing a generic collection of the
same class
2. Run async call to web service endpoint
3.

-- 
Configure bugmail: http://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