[Mono-bugs] [Bug 71572][Wis] New - Win32Exception: Deserialization bug

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 21 Jan 2005 08:46:32 -0500 (EST)

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 dezelin32@fastmail.fm.


--- shadow/71572	2005-01-21 08:46:31.000000000 -0500
+++ shadow/71572.tmp.29367	2005-01-21 08:46:31.000000000 -0500
@@ -0,0 +1,45 @@
+Bug#: 71572
+Product: Mono: Class Libraries
+Version: 1.1
+OS: other
+OS Details: Fedora Core 2
+Status: NEW   
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: dezelin32@fastmail.fm               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: Win32Exception: Deserialization bug
+Description of Problem:
+Protected constructor Win32Exception(SerializationInfo info,
+StreamingContext context) doesn't properly deserialize class - it doesn't
+deserialize field 'int native_error_code' so when the exception is raised
+over a remoting channell it shows the following message message on the
+client side: 'Member NativeErrorCode was not found.'.
+Steps to reproduce the problem:
+1. Raise an exception of this type over a remoting channel.
+Actual Results:
+Client catches another exception sayin that 'Member NativeErrorCode was not
+Expected Results:
+Exception gets to the client side.
+How often does this happen? 
+Additional Information:
+I've included the patch to fix this but I don't know how to write a test.