[Mono-bugs] [Bug 31246][Nor] Changed - Remoting does not check that the type is either serializable or MarshalByRefObject

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Tue, 4 Feb 2003 16:42:51 -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 gonzalo@ximian.com.

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

--- shadow/31246	Wed Sep 25 22:34:51 2002
+++ shadow/31246.tmp.22573	Tue Feb  4 16:42:51 2003
@@ -2,13 +2,13 @@
 Product: Mono/Runtime
 Version: unspecified
 OS: All
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Normal
 Component: misc
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: gonzalo@ximian.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -25,6 +25,37 @@
 
 Expected Results:
 Unhandled Exception: System.Runtime.Serialization.SerializationException:
 The type A in Assembly appdomaintest
 2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null is not marked as
 serializable.
+
+------- Additional Comments From gonzalo@ximian.com  2003-02-04 16:42 -------
+With current CVS i get:
+Exception in base domain
+
+Unhandled Exception: System.InvalidCastException: Cannot cast from
+source type to destination type
+
+Server stack trace: 
+in <0x00470> 00
+System.Runtime.Serialization.Formatters.Binary.MessageFormatter:ReadMethodResponse
+(System.IO.BinaryReader,bool,System.Runtime.Remoting.Messaging.HeaderHandler,System.Runtime.Remoting.Messaging.IMethodCallMessage,System.Runtime.Serialization.ISurrogateSelector,System.Runtime.Serialization.StreamingContext)
+in <0x001c8> 00
+System.Runtime.Serialization.Formatters.Binary.BinaryFormatter:Deserialize
+(System.IO.Stream,System.Runtime.Remoting.Messaging.HeaderHandler)
+in <0x00079> 00
+System.Runtime.Remoting.Channels.CADSerializer:DeserializeMessage
+(System.IO.MemoryStream,System.Runtime.Remoting.Messaging.IMethodCallMessage)
+in <0x002dd> 00
+System.Runtime.Remoting.Channels.CrossAppDomainSink:SyncProcessMessage
+(System.Runtime.Remoting.Messaging.IMessage)
+
+
+Exception rethrown at [0]: 
+in <0x000bc> 00
+System.Runtime.Remoting.Proxies.RealProxy:PrivateInvoke
+(System.Runtime.Remoting.Proxies.RealProxy,System.Runtime.Remoting.Messaging.IMessage,System.Exception&,object[]&)
+in (unmanaged) 07 System.AppDomain:CreateInstanceAndUnwrap (string,string)
+in <0x00004> 07 System.AppDomain:CreateInstanceAndUnwrap (string,string)
+in <0x000fe> 00 .C:Main ()
+