[Mono-bugs] [Bug 47784][Nor] New - ASP.NET: Unit and FontUnit are not serializable

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 21 Aug 2003 03:32:50 -0400 (EDT)


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 eric@veltman.nu.

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

--- shadow/47784	2003-08-21 03:32:50.000000000 -0400
+++ shadow/47784.tmp.4014	2003-08-21 03:32:50.000000000 -0400
@@ -0,0 +1,50 @@
+Bug#: 47784
+Product: Mono/Class Libraries
+Version: unspecified
+OS: Suse 8.2
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: System.Web
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: eric@veltman.nu               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: ASP.NET: Unit and FontUnit are not serializable
+
+Description of Problem: 
+When setting f.i. the Width property of a webcontrol or setting the font 
+size of a webcontrol from code an error message about serialization is 
+given. 
+ 
+Steps to reproduce the problem: 
+Create simple webform and set the Width and Font.Size property of one of 
+the webcontrols from code. 
+ 
+Actual Results: 
+System.Runtime.Serialization.SerializationException: Type 
+System.Web.UI.WebControls.Unit is not marked as Serializable and does not 
+implement ISerializable. 
+ 
+or 
+ 
+System.Runtime.Serialization.SerializationException: Type 
+System.Web.UI.WebControls.FontUnit is not marked as Serializable and does 
+not implement ISerializable. 
+ 
+Expected Results: 
+No error. 
+ 
+How often does this happen?  
+Always as far as I know. 
+ 
+Additional Information: 
+Using mono 0.26, latest ( 2003-08-21 08:22 ) snapshot from anon CVS. 
+Using mcs 0.26, latest ( 2003-08-21 08:22 ) snapshot from anon CVS. 
+Using xsp 0.5, release version. 
+Adding [Serializable()] just before the class definition in Unit.cs and 
+FontUnit.cs and recompiling the class libraries solves the problem.