[Mono-dev] Remoting Type Load Exception - After Upgrading from .NET 1.1 to 2.0

Brandon Davids brandondavids at charter.net
Sat May 20 22:25:49 EDT 2006


I'm using Remoting to send DataSets back and forth between a client/server.
My project worked great when it was .NET 1.1 and Mono 1.1.12.x.  Now that
I've upgrade my project to .NET 2.0 and Mono 1.1.13 or 1.1.15, I get a type
load exception when sending the DataSet.

 

Has anyone seen this before and point me in the right direction.  

 

Server stack trace: 

in <0x00000> <unknown method>

in (wrapper managed-to-native) System.Reflection.Assembly:InternalGetType
(System.Reflection.Module,string,bool,bool)

in <0x00026> System.Reflection.Assembly:GetType (System.String name, Boolean
throwOnError, Boolean ignoreCase)

in <0x00017> System.Reflection.Assembly:GetType (System.String name, Boolean
throwOnError)

in <0x0008b> System.Runtime.Remoting.Channels.SimpleBinder:BindToType
(System.String assemblyName, System.String typeName)

in <0x00077>
System.Runtime.Serialization.Formatters.Binary.ObjectReader:GetDeserializati
onType (Int64 assemblyId, System.String className)

in <0x000c2>
System.Runtime.Serialization.Formatters.Binary.ObjectReader:ReadType
(System.IO.BinaryReader reader, TypeTag code)

in <0x001bf>
System.Runtime.Serialization.Formatters.Binary.ObjectReader:ReadTypeMetadata
(System.IO.BinaryReader reader, Boolean isRuntimeObject, Boolean
hasTypeInfo)

in <0x00040>
System.Runtime.Serialization.Formatters.Binary.ObjectReader:ReadObjectInstan
ce (System.IO.BinaryReader reader, Boolean isRuntimeObject, Boolean
hasTypeInfo, System.Int64 objectId, System.Object value,
System.Runtime.Serialization.SerializationInfo info)

in <0x000b1>
System.Runtime.Serialization.Formatters.Binary.ObjectReader:ReadObject
(BinaryElement element, System.IO.BinaryReader reader, System.Int64
objectId, System.Object value,
System.Runtime.Serialization.SerializationInfo info)

in <0x00176>
System.Runtime.Serialization.Formatters.Binary.ObjectReader:ReadObject
(BinaryElement element, System.IO.BinaryReader reader, System.Int64
objectId, System.Object value,
System.Runtime.Serialization.SerializationInfo info)

in <0x00072>
System.Runtime.Serialization.Formatters.Binary.ObjectReader:ReadNextObject
(System.IO.BinaryReader reader)

in <0x000a3>
System.Runtime.Serialization.Formatters.Binary.ObjectReader:ReadObjectGraph
(System.IO.BinaryReader reader, Boolean readHeaders, System.Object result,
System.Runtime.Remoting.Messaging.Header[] headers)

in <0x0022c>
System.Runtime.Serialization.Formatters.Binary.MessageFormatter:ReadMethodCa
ll (System.IO.BinaryReader reader, Boolean hasHeaders,
System.Runtime.Remoting.Messaging.HeaderHandler headerHandler,
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter formatter)

in <0x000ba>
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter:NoCheckDeseri
alize (System.IO.Stream serializationStream,
System.Runtime.Remoting.Messaging.HeaderHandler handler)

in <0x00010>
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter:Deserialize
(System.IO.Stream serializationStream,
System.Runtime.Remoting.Messaging.HeaderHandler handler)

in <0x00236>
System.Runtime.Remoting.Channels.BinaryServerFormatterSink:ProcessMessage
(IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders
requestHeaders, System.IO.Stream requestStream, IMessage responseMsg,
ITransportHeaders responseHeaders, System.IO.Stream responseStream)

 

Exception rethrown at [0]: 

   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage
reqMsg, IMessage retMsg)

   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
msgData, Int32 type)

   at BDSoft.BF2.Server.IProfile.SaveProfile(String Token, String
ProfileName, DataSet dsProfile, Boolean LoadOnStart)

   at BF2CC.clsProfiles.SaveProfileToDaemon() in C:\BF2 Project
2005\1.3\BF2CC\Classes\clsProfiles.vb:line 382

 

 

Brandon Davids

BDSoft Inc.

http://www.bf2cc.com

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060520/5f71d04a/attachment.html 


More information about the Mono-devel-list mailing list