Author: andrews
Date: 2006-11-07 05:23:40 -0500 (Tue, 07 Nov 2006)
New Revision: 67442

Modified:
   trunk/mcs/class/System.Web/Test/mainsoft/NunitWeb/NunitWeb/MyHost.jvm.cs
Log:
fallback for serialization problems


Modified: 
trunk/mcs/class/System.Web/Test/mainsoft/NunitWeb/NunitWeb/MyHost.jvm.cs
===================================================================
--- trunk/mcs/class/System.Web/Test/mainsoft/NunitWeb/NunitWeb/MyHost.jvm.cs    
2006-11-07 10:17:30 UTC (rev 67441)
+++ trunk/mcs/class/System.Web/Test/mainsoft/NunitWeb/NunitWeb/MyHost.jvm.cs    
2006-11-07 10:23:40 UTC (rev 67442)
@@ -33,7 +33,16 @@
                                return string.Empty;
                        using (MemoryStream ms = new MemoryStream ()) {
                                SoapFormatter f = new SoapFormatter ();
-                               f.Serialize (ms, o);
+                               try {
+                                       f.Serialize (ms, o);
+                               }
+                               catch (Exception ex) {
+                                       Exception inner = o as Exception;
+                                       if (inner != null)
+                                               RethrowException (inner);
+                                       else
+                                               throw;
+                               }
                                return HttpUtility.UrlEncode (ms.ToArray());
                        }
                }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to