[Mono-bugs] [Bug 58608][Nor] Changed - Sending a Signed Assembly using Remoting causes a Serialization Exception
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Tue, 8 Jun 2004 21:29:55 -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 gmiyake@carter-inc.com.
http://bugzilla.ximian.com/show_bug.cgi?id=58608
--- shadow/58608 2004-06-08 21:12:44.000000000 -0400
+++ shadow/58608.tmp.28371 2004-06-08 21:29:55.000000000 -0400
@@ -723,6 +723,195 @@
Ping. Can you confirm that is it is fixed in beta2?
------- Additional Comments From gmiyake@carter-inc.com 2004-06-08 21:12 -------
Created an attachment (id=8078)
Assembly key file TestKey.snk
+
+------- Additional Comments From gmiyake@carter-inc.com 2004-06-08 21:29 -------
+Sorry for not checking this out earlier. I am still seing the
+assembly serialization problem with Beta2. I tried using a Key file
+generated from mono/sn and I get the same results. I updated to Mono
+0.95 through Red Carpet.
+
+I am going to try updating mono from CVS. Since you are not getting
+this error, I will double check my setup.
+
+I attached my key file, and here is the error I am getting:
+
+Press Enter to start Remoting Client connection to :
+tcp://starwars:8084/MonoTes
+tServerApplication
+
+
+XferObjectSimple tests -----------------------
+ Sending XferObjectSimple data to server...
+ Receiving XferObjectSimple from server...
+###################################
+RemotingClient caught Exception :
+System.Runtime.Serialization.SerializationExce
+ption: Cannot find the assembly XferObject, Version=1.0.1620.32276,
+Culture=neut
+ral, PublicKeyToken=316d799e649bb495.
+
+Server stack trace:
+ at
+System.Runtime.Serialization.Formatters.Binary.BinaryAssemblyInfo.Get
+Assem
+bly()
+ at
+System.Runtime.Serialization.Formatters.Binary.ObjectReader.GetType
+(Binary
+AssemblyInfo assemblyInfo, String name)
+ at System.Runtime.Serialization.Formatters.Binary.ObjectMap..ctor
+(String obje
+ctName, String[] memberNames, BinaryTypeEnum[] binaryTypeEnumA,
+Object[] typeInf
+ormationA, Int32[] memberAssemIds, ObjectReader objectReader, Int32
+objectId, Bi
+naryAssemblyInfo assemblyInfo, SizedArray assemIdToAssemblyTable)
+ at System.Runtime.Serialization.Formatters.Binary.ObjectMap.Create
+(String nam
+e, String[] memberNames, BinaryTypeEnum[] binaryTypeEnumA, Object[]
+typeInformat
+ionA, Int32[] memberAssemIds, ObjectReader objectReader, Int32
+objectId, BinaryA
+ssemblyInfo assemblyInfo, SizedArray assemIdToAssemblyTable)
+ at
+System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObj
+ectWi
+thMapTyped(BinaryObjectWithMapTyped record)
+ at
+System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObj
+ectWi
+thMapTyped(BinaryHeaderEnum binaryHeaderEnum)
+ at
+System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()
+ at
+System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deseriali
+ze(He
+aderHandler handler, __BinaryParser serParser, Boolean fCheck,
+IMethodCallMessag
+e methodCallMessage)
+ at
+System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deseri
+alize
+(Stream serializationStream, HeaderHandler handler, Boolean fCheck,
+IMethodCallM
+essage methodCallMessage)
+ at
+System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Unsafe
+Deser
+ializeMethodResponse(Stream serializationStream, HeaderHandler
+handler, IMethodC
+allMessage methodCallMessage)
+ at
+System.Runtime.Remoting.Channels.CoreChannel.DeserializeBinaryRespons
+eMess
+age(Stream inputStream, IMethodCallMessage reqMsg, Boolean
+bStrictBinding)
+ at
+System.Runtime.Remoting.Channels.BinaryClientFormatterSink.Deserializ
+eMess
+age(IMethodCallMessage mcm, ITransportHeaders headers, Stream stream)
+ at
+System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProces
+sMess
+age(IMessage msg)
+
+Exception rethrown at [0]:
+ at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage
+(IMessage req
+Msg, IMessage retMsg)
+ at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke
+(MessageData& msgDa
+ta, Int32 type)
+ at RemotingTest.ServerList.GetTestXferObjectSimple() in
+c:\amadeus\dev\mono\a
+ssmblytest\assemblytest\remotingobject\remotingobject\remoteobject.cs
+:line 38
+ at RemotingTest.RemotingClient.Main() in
+c:\amadeus\dev\mono\assmblytest\asse
+mblytest\remotingclient\remotingclient.cs:line 52
+
+Server stack trace:
+ at
+System.Runtime.Serialization.Formatters.Binary.BinaryAssemblyInfo.Get
+Assem
+bly()
+ at
+System.Runtime.Serialization.Formatters.Binary.ObjectReader.GetType
+(Binary
+AssemblyInfo assemblyInfo, String name)
+ at System.Runtime.Serialization.Formatters.Binary.ObjectMap..ctor
+(String obje
+ctName, String[] memberNames, BinaryTypeEnum[] binaryTypeEnumA,
+Object[] typeInf
+ormationA, Int32[] memberAssemIds, ObjectReader objectReader, Int32
+objectId, Bi
+naryAssemblyInfo assemblyInfo, SizedArray assemIdToAssemblyTable)
+ at System.Runtime.Serialization.Formatters.Binary.ObjectMap.Create
+(String nam
+e, String[] memberNames, BinaryTypeEnum[] binaryTypeEnumA, Object[]
+typeInformat
+ionA, Int32[] memberAssemIds, ObjectReader objectReader, Int32
+objectId, BinaryA
+ssemblyInfo assemblyInfo, SizedArray assemIdToAssemblyTable)
+ at
+System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObj
+ectWi
+thMapTyped(BinaryObjectWithMapTyped record)
+ at
+System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObj
+ectWi
+thMapTyped(BinaryHeaderEnum binaryHeaderEnum)
+ at
+System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()
+ at
+System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deseriali
+ze(He
+aderHandler handler, __BinaryParser serParser, Boolean fCheck,
+IMethodCallMessag
+e methodCallMessage)
+ at
+System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deseri
+alize
+(Stream serializationStream, HeaderHandler handler, Boolean fCheck,
+IMethodCallM
+essage methodCallMessage)
+ at
+System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Unsafe
+Deser
+ializeMethodResponse(Stream serializationStream, HeaderHandler
+handler, IMethodC
+allMessage methodCallMessage)
+ at
+System.Runtime.Remoting.Channels.CoreChannel.DeserializeBinaryRespons
+eMess
+age(Stream inputStream, IMethodCallMessage reqMsg, Boolean
+bStrictBinding)
+ at
+System.Runtime.Remoting.Channels.BinaryClientFormatterSink.Deserializ
+eMess
+age(IMethodCallMessage mcm, ITransportHeaders headers, Stream stream)
+ at
+System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProces
+sMess
+age(IMessage msg)
+
+Exception rethrown at [0]:
+ at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage
+(IMessage req
+Msg, IMessage retMsg)
+ at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke
+(MessageData& msgDa
+ta, Int32 type)
+ at RemotingTest.ServerList.GetTestXferObjectSimple() in
+c:\amadeus\dev\mono\a
+ssmblytest\assemblytest\remotingobject\remotingobject\remoteobject.cs
+:line 38
+ at RemotingTest.RemotingClient.Main() in
+c:\amadeus\dev\mono\assmblytest\asse
+mblytest\remotingclient\remotingclient.cs:line 52
+###################################
+Done. Press Enter to exit.
+