Hi all,
I'm triying to create a prototype of a smart client that using .NET
Remoting.
I've got an assembly loaded into an HTML page by a tag object
<OBJECT id="myID" height="150" width="300"
classid="http:bin/CPRSWebClient.dll#IBM.Cipros.Refinery.CPRSWebClien t"
/>
My assembly is strong named and it is full trusted.
Thi assembly referenced some other assembly also strong named and full
trusted and publish in the same virtual directory of the first one.
The object is correctly loaded inside my HTML page and create correctly
a remote channel and I can instance a remote object.
I've got a problem when I try to invoke a method on this remote object.
I'm sure that the invocation occured correctly server side, but when
the return object arrived client side I've got this exception.
System.Runtime.Serialization.SerializationExceptio n:
Cannot find the assembly CprsBaseType, Version=1.0.2460.30737,
Culture=neutral, PublicKeyToken=d046a4512344d447. Server stack trace:
at
System.Runtime.Serialization.Formatters.Binary.Bin aryAssemblyInfo.GetAssembly()
at
System.Runtime.Serialization.Formatters.Binary.Obj ectReader.GetType(BinaryAssemblyInfo
assemblyInfo, String name)
at
System.Runtime.Serialization.Formatters.Binary.Obj ectMap..ctor(String
objectName, String[] memberNames, BinaryTypeEnum[] binaryTypeEnumA,
Object[] typeInformationA, Int32[] memberAssemIds, ObjectReader
objectReader, Int32 objectId, BinaryAssemblyInfo assemblyInfo,
SizedArray assemIdToAssemblyTable)
at
System.Runtime.Serialization.Formatters.Binary.Obj ectMap.Create(String
name, String[] memberNames, BinaryTypeEnum[] binaryTypeEnumA, Object[]
typeInformationA, Int32[] memberAssemIds, ObjectReader objectReader,
Int32 objectId, BinaryAssemblyInfo assemblyInfo, SizedArray
assemIdToAssemblyTable)
at
System.Runtime.Serialization.Formatters.Binary.__B inaryParser.ReadObjectWithMapTyped(BinaryObjectWit hMapTyped
record)
at
System.Runtime.Serialization.Formatters.Binary.__B inaryParser.ReadObjectWithMapTyped(BinaryHeaderEnu m
binaryHeaderEnum)
at System.Runtime.Serialization.Formatters.Binary.__B inaryParser.Run()
at
System.Runtime.Serialization.Formatters.Binary.Obj ectReader.Deserialize(HeaderHandler
handler, __BinaryParser serParser, Boolean fCheck, IMethodCallMessage
methodCallMessage)
at
System.Runtime.Serialization.Formatters.Binary.Bin aryFormatter.Deserialize(Stream
serializationStream, HeaderHandler handler, Boolean fCheck,
IMethodCallMessage methodCallMessage)
at
System.Runtime.Remoting.Channels.CoreChannel.Deser ializeBinaryResponseMessage(Stream
inputStream, IMethodCallMessage reqMsg, Boolean bStrictBinding)
at
System.Runtime.Remoting.Channels.BinaryClientForma tterSink.SyncProcessMessage(IMessage
msg) Exception rethrown at [0]:
at
System.Runtime.Remoting.Proxies.RealProxy.HandleRe turnMessage(IMessage
reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateI nvoke(MessageData&
msgData, Int32 type)
at IBM.Cipros.Refinery.DataProvider.GetLastValue(Refi neryArchive obj)
at IBM.Cipros.Refinery.CPRSWebClient.Check()
If I try to instance client side an object like that returned by the
invocation no exception occured.
Any ideas ?