[Mono-bugs] [Bug 80558][Wis] New - System.Drawing.Image serialization

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Jan 19 10:50:01 EST 2007


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by thisaddressisnotmine+ximian at td.selfip.net.

http://bugzilla.ximian.com/show_bug.cgi?id=80558

--- shadow/80558	2007-01-19 10:50:01.000000000 -0500
+++ shadow/80558.tmp.25608	2007-01-19 10:50:01.000000000 -0500
@@ -0,0 +1,47 @@
+Bug#: 80558
+Product: Mono: Class Libraries
+Version: 1.2
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Sys.Web.Services
+AssignedTo: atsushi at ximian.com                            
+ReportedBy: thisaddressisnotmine+ximian at td.selfip.net               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: System.Drawing.Image serialization
+
+Description of Problem:
+
+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>
+
+Steps to reproduce the problem:
+
+1. Create web service with method returning System.Drawing.Image
+2. Cal this method.


More information about the mono-bugs mailing list