[Mono-list] System.Drawing.Image serialization
Oleg Deribas
thisaddressisnotmine at td.selfip.net
Fri Jan 19 04:24:13 EST 2007
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
More information about the Mono-list
mailing list