|
|
|
date: Mon, 5 Jun 2006 09:02:02 -0700,
group: microsoft.public.dotnet.distributed_apps
back
Error on Deserialization of object from http remoting
First of all, this system is written in C# using VS2005 Team edition.
I've got a 3 tier application that starts from an IE HTML page with a User
control hosted as an object tag. THe User control communicates with a web
server (IIS) using http Remoting and the webserver passes communications on
to another tier using TCP remoting. The objects passed to these methods are
from a separate Common DLL that all projects have references to. The common
object goes to the webserver fine and I have debugged it at that point. The
comunications from the Webserver to the other server tier are also fine.
What fails is the communication back from the webserver to the client hosted
in the ie page. I get an exception in the deserialization process. The
following is the Exception Text:
************** Exception Text **************
System.Runtime.Serialization.SerializationException: Unable to find assembly
'Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Server stack trace:
at
System.Runtime.Serialization.Formatters.Binary.BinaryAssemblyInfo.GetAssembly()
at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.GetType(BinaryAssemblyInfo assemblyInfo, String name)
at System.Runtime.Serialization.Formatters.Binary.ObjectMap..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.__BinaryParser.ReadObjectWithMapTyped(BinaryObjectWithMapTyped record)
at
System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWithMapTyped(BinaryHeaderEnum binaryHeaderEnum)
at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()
at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler
handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain,
IMethodCallMessage methodCallMessage)
at
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream
serializationStream, HeaderHandler handler, Boolean fCheck, Boolean
isCrossAppDomain, IMethodCallMessage methodCallMessage)
at
System.Runtime.Remoting.Channels.CoreChannel.DeserializeBinaryResponseMessage(Stream inputStream, IMethodCallMessage reqMsg, Boolean bStrictBinding)
at
System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage(IMessage msg)
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 Common.IHost.Submit(PassedObject po)
at HostedDLL.boxes.button1_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
It doesn't have a problem finding the Common.DLL in the first place, since
that is where the PassedObject was created from that gets passed to the
webserver in the first place. I'm hoping that there is someplace I can put
an assembly reference to fix this, but am unsure about where to look.
I can provide other bits of config files or pieces of code if it will help.
Thanks.
Jeremy Peck
date: Mon, 5 Jun 2006 09:02:02 -0700
author: Jeremy am
|
|