[Mono-dev] TypeLoadException when remoting from Windows

Jacob Ilsø Christensen jacobilsoe at gmail.com
Wed Feb 7 02:59:22 EST 2007


Hi.

I am trying to do a remote call from Windows to an application running
on Linux under Mono 1.2.2.1. When I try it, I get the exception below.
There is not much info as to what might be wrong. Is it a missing
assembly?

Thanks in advance,
Jacob

Exception: System.TypeLoadException
Message: A type load exception has occurred.
Source: mscorlib

Server stack trace:
  at <0x00000> <unknown method>
  at (wrapper managed-to-native) System.Type:internal_from_name
(string,bool,bool)
  at System.Type.GetType (System.String typeName, Boolean
throwOnError) [0x00000]
  at System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadType
(System.IO.BinaryReader reader, TypeTag code) [0x00000]
  at System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadTypeMetadata
(System.IO.BinaryReader reader, Boolean isRuntimeObject, Boolean
hasTypeInfo) [0x00000]
  at System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadObjectInstance
(System.IO.BinaryReader reader, Boolean isRuntimeObject, Boolean
hasTypeInfo, System.Int64& objectId, System.Object& value,
System.Runtime.Serialization.SerializationInfo& info) [0x00000]
  at System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadObject
(BinaryElement element, System.IO.BinaryReader reader, System.Int64&
objectId, System.Object& value,
System.Runtime.Serialization.SerializationInfo& info) [0x00000]
  at System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadNextObject
(System.IO.BinaryReader reader) [0x00000]
  at System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadObjectGraph
(System.IO.BinaryReader reader, Boolean readHeaders, System.Object&
result, System.Runtime.Remoting.Messaging.Header[]& headers) [0x00000]
  at System.Runtime.Serialization.Formatters.Binary.MessageFormatter.ReadMethodCall
(System.IO.BinaryReader reader, Boolean hasHeaders,
System.Runtime.Remoting.Messaging.HeaderHandler headerHandler,
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
formatter) [0x00000]
  at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.NoCheckDeserialize
(System.IO.Stream serializationStream,
System.Runtime.Remoting.Messaging.HeaderHandler handler) [0x00000]
  at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize
(System.IO.Stream serializationStream,
System.Runtime.Remoting.Messaging.HeaderHandler handler) [0x00000]
  at System.Runtime.Remoting.Channels.BinaryServerFormatterSink.ProcessMessage
(IServerChannelSinkStack sinkStack, IMessage requestMsg,
ITransportHeaders requestHeaders, System.IO.Stream requestStream,
IMessage& responseMsg, ITransportHeaders& responseHeaders,
System.IO.Stream& responseStream) [0x00000]

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 Mgt.add_MgtEvent(MgtEventHandler value)



More information about the Mono-devel-list mailing list