[Mono-bugs] [Bug 645553] New: Empty ArrayList returned from WCF fails to deserialize, fixed in Mono need fix applied to MonoTouch
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Oct 11 16:21:49 EDT 2010
https://bugzilla.novell.com/show_bug.cgi?id=645553
https://bugzilla.novell.com/show_bug.cgi?id=645553#c0
Summary: Empty ArrayList returned from WCF fails to
deserialize, fixed in Mono need fix applied to
MonoTouch
Classification: Mono
Product: MonoTouch
Version: unspecified
Platform: x86
OS/Version: Other
Status: NEW
Severity: Major
Priority: P5 - None
Component: Class Libraries
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: dsandor at mdsiinc.com
QAContact: mono-bugs at lists.ximian.com
Found By: Customer
Blocker: ---
Description of Problem:
Atsushi Eno fixed this error in the Mono svc. The bug still exists in
MonoTouch SDK version 3.2.
http://go-mono.com/forums/#nabble-td1576794
---Summary from forum---
I am using a basicHttpBinding to communicate with an IIS 7 hosted WCF service
from a WinForms ported application (running on Mono 2.6.1).
If the WCF Service returns an empty array or an object containing an empty
array the call results in the following exception:
Exception in async operation: System.InvalidOperationException: Failed to set
va
lue of type System.Collections.ArrayList for property
MonoTest.SearchService.DAS
earchField[] Fields ---> System.ArgumentException: failed to convert parameters
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags
invoke
Attr, System.Reflection.Binder binder, System.Object[] parameters,
System.Global
ization.CultureInfo culture) [0x00000] in <filename unknown>:0
..
The error goes away if I return null instead of the empty array.
Patch to mono was applied here:
http://lists.ximian.com/pipermail/mono-patches/2010-March/167770.html
Steps to reproduce the problem:
1. Return an EMPTY ArrayList from WCF.
2. Consume WCF in MonoTouch by exporting WSDL to Proxy using SL3 SDK.
Actual Results:
xception in async operation: System.InvalidOperationException: Failed to set va
lue of type System.Collections.ArrayList for property
MonoTest.SearchService.DAS
earchField[] Fields ---> System.ArgumentException: failed to convert parameters
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags
invoke
Attr, System.Reflection.Binder binder, System.Object[] parameters,
System.Global
ization.CultureInfo culture) [0x00000] in <filename unknown>:0
Expected Results:
Array that is empty should have been initialized.
How often does this happen?
Always
Additional Information:
--
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