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:b in/CPRSWebClient.d ll#IBM.Cipros.R efinery.CPRSWeb Client"
/>
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.S erializationExc eption:
Cannot find the assembly CprsBaseType, Version=1.0.246 0.30737,
Culture=neutral , PublicKeyToken= d046a4512344d44 7. Server stack trace:
at
System.Runtime. Serialization.F ormatters.Binar y.BinaryAssembl yInfo.GetAssemb ly()
at
System.Runtime. Serialization.F ormatters.Binar y.ObjectReader. GetType(BinaryA ssemblyInfo
assemblyInfo, String name)
at
System.Runtime. Serialization.F ormatters.Binar y.ObjectMap..ct or(String
objectName, String[] memberNames, BinaryTypeEnum[] binaryTypeEnumA ,
Object[] typeInformation A, Int32[] memberAssemIds, ObjectReader
objectReader, Int32 objectId, BinaryAssemblyI nfo assemblyInfo,
SizedArray assemIdToAssemb lyTable)
at
System.Runtime. Serialization.F ormatters.Binar y.ObjectMap.Cre ate(String
name, String[] memberNames, BinaryTypeEnum[] binaryTypeEnumA , Object[]
typeInformation A, Int32[] memberAssemIds, ObjectReader objectReader,
Int32 objectId, BinaryAssemblyI nfo assemblyInfo, SizedArray
assemIdToAssemb lyTable)
at
System.Runtime. Serialization.F ormatters.Binar y.__BinaryParse r.ReadObjectWit hMapTyped(Binar yObjectWithMapT yped
record)
at
System.Runtime. Serialization.F ormatters.Binar y.__BinaryParse r.ReadObjectWit hMapTyped(Binar yHeaderEnum
binaryHeaderEnu m)
at System.Runtime. Serialization.F ormatters.Binar y.__BinaryParse r.Run()
at
System.Runtime. Serialization.F ormatters.Binar y.ObjectReader. Deserialize(Hea derHandler
handler, __BinaryParser serParser, Boolean fCheck, IMethodCallMess age
methodCallMessa ge)
at
System.Runtime. Serialization.F ormatters.Binar y.BinaryFormatt er.Deserialize( Stream
serializationSt ream, HeaderHandler handler, Boolean fCheck,
IMethodCallMess age methodCallMessa ge)
at
System.Runtime. Remoting.Channe ls.CoreChannel. DeserializeBina ryResponseMessa ge(Stream
inputStream, IMethodCallMess age reqMsg, Boolean bStrictBinding)
at
System.Runtime. Remoting.Channe ls.BinaryClient FormatterSink.S yncProcessMessa ge(IMessage
msg) Exception rethrown at [0]:
at
System.Runtime. Remoting.Proxie s.RealProxy.Han dleReturnMessag e(IMessage
reqMsg, IMessage retMsg)
at System.Runtime. Remoting.Proxie s.RealProxy.Pri vateInvoke(Mess ageData&
msgData, Int32 type)
at IBM.Cipros.Refi nery.DataProvid er.GetLastValue (RefineryArchiv e obj)
at IBM.Cipros.Refi nery.CPRSWebCli ent.Check()
If I try to instance client side an object like that returned by the
invocation no exception occured.
Any ideas ? 2 1497
no idea from nobody ?
please help me
Lambuz wrote:
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.S erializationExc eption:
Cannot find the assembly CprsBaseType, Version=1.0.246 0.30737,
Culture=neutral , PublicKeyToken= d046a4512344d44 7. Server stack trace:
That version - "Version=1.0.24 60.30737" - has me worried.
Those last two numbers are [re-]generated every time you rebuild
(re-open?) the project. It's all /too/ easy to wind up with different
versions - and, to the Framework, totally different assemblies - on each
side of the Remoting Divide.
HTH,
Phill W. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Dominic |
last post by:
Hi everybody,
In my application, I'm planning to use BinaryFormatter to serialize a
potentially huge object to file (and, of course, deserialize back to
memory later). My question is if there is any hard limit on the size
of this object?
Is it only limited by the amount of memory or hard-disk space in the
server?
|
by: aladdinm1 |
last post by:
Hi All,
I have an annoying trouble with binary serialization. I have a windows
forms application which works like a server and keeps sending data to its
clients. The data is serialized before being sent using BinaryFormatter and a
serializable object. When using a windows forms application as a client,
everything works just fine and deserialized data can be received intact. When
the client application is is embedded in Internet Explorer (I...
|
by: aladdinm1 |
last post by:
Hi All,
Reference to the problem I posted with subject
"BinaryFormatter.Deserialize fails when used with .net ActiveX". I could
successfully solve the problem by creating a class inherited from
SerializationBinder and setting the Binder property of the BinaryFormatter to
an instance of that class. The code used was just one line to return the type
used to serialize data. I got this information by help of the following Url:
...
|
by: Joshua Moore |
last post by:
I have a webservice that serializes a ton of variables and other good stuff
to a txt file using SoapFormatter (IFormatter), and when I try to
deserialize it using the binary formatter, i get the following error:
BinaryFormatter Version incompatibility. Expected Version 1.0. Received
Version 1986938170.1886350437.
I've read a lot about this error from several sources on the net, but can't
|
by: Fred Heida |
last post by:
Hi Al, i have a funny problem.. i you can call it funny..
what i have is 2 assemblies, the first one does nothing other then
Application.Run(new MyForm())
| |
by: Igor |
last post by:
Hi.
While executing BinaryFormatter.Deserialize() I get:
System.InvalidCastException: Specified cast is not valid.
I implemented ISerializable interface. What may be a problem?
Thanks.
|
by: Fruber Malcome |
last post by:
I'm getting a very weird exception and hoping someone may be able to help.
I have an Office Add-In that lives in a .dll (for email reference ai.dll)
ai.dll makes calls into the core part of the application implementation in
another .dll (let's call that app.dll).
app.dll makes a function call into another dll (let's call that one
dep.dll).
dep.dll has some code in it where it deserializes a memorystream using a
binaryformatter.
|
by: Sharon |
last post by:
Hi,
When I'm doing BinaryFormatter.Deserialize() over a TCP socket. When I'm
closing the TcpListener by invoking the TcpListener.Stop(); I get:
System.IO.IOException with message "Unable to read data from the transport
connection." that InnerException of type System.Net.Sockets.SocketException
saying "An established connection was aborted by the software in your host
machine".
|
by: JZ |
last post by:
Hi,
I'm using a class and binary formatter to store data in files.
For example..
Dim FPs As New StuctureDataFile()
Dim FileStream As Stream = File.Open(pfile, FileMode.Open)
Dim FileFormatter As New BinaryFormatter()
FPs = DirectCast(FileFormatter.Deserialize(FileStream), StuctureDataFile)
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |