Hello,
I'm trying to use System.Drawing.Image in web service and have the
following exception:
System.InvalidOperationException:
There was an error reflecting field 'TechStatusImage'.
---> System.InvalidOperationException:
There was an error reflecting type 'System.Drawing.Image'.
---> System.InvalidOperationException:
There was an error reflecting field 'Palette'.
---> System.InvalidOperationException:
There was an error reflecting type
'System.Drawing.Imaging.ColorPalette'.
---> System.InvalidOperationException:
System.Drawing.Imaging.ColorPalette cannot be serialized because it does
not have a default public constructor
And I noticed that Microsoft's ASP.NET doesn't even try to reflect
Palette field and produces such output in the example response:
<MyImage>
<Tag />
<Palette xsi:nil="true" />
</MyImage>
Is it a bug in mono?
--
Oleg
_______________________________________________
Mono-list maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list