Actually I just made a quick fix in svn (r153004). Atsushi Eno
On 2010/03/04 18:42, Atsushi Eno wrote: > Hello, > > I noticed that there is a case that an array does not work fine, but > this stack trace is not the case. So let's please file a bug with > runnable code. The error message often (well, very often) doesn't give > enough information by itself, and it is the case. > > Atsushi Eno > > > On 2010/03/04 1:10, marcg wrote: > >> Hi, >> >> 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. >> >> Is this a known issue? Is there a fix/workaround - I have over 10 WCF >> Service projects each with 20+ methods returning arrays which could be >> empty. >> > _______________________________________________ > Mono-list maillist - [email protected] > http://lists.ximian.com/mailman/listinfo/mono-list > > > > _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
