Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
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

RE: Error on Deserialization of object from http remoting   
Hello Jeremy,

Is the Common.DLL strong named and put in GAC on the client computer? If 
not, you may first try this to see if it will help. If the Common.DLL is 
saved in internet temp file, there may be some problems to access it.

Regards,

Luke Zhang
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so 
that others may learn and benefit from your issue. 
==================================================

(This posting is provided "AS IS", with no warranties, and confers no 
rights.)
date: Tue, 06 Jun 2006 02:20:30 GMT   author:   (Luke Zhang [MSFT])

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us