Re: How to get assembly version of remote object?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Maybe GetProxiedType method of RealProxy ?

Regards,
Tasos

Martin Müller wrote:
Dear community,
I'm looking for a way to find out the assembly version of a remote type.

In a .NET remoting application it's possible that the assembly version of a
remoted type is not the same between the client and the server.
Let's say the server has the type ServerObj in a version 1.0.0.0 in its
Server.dll assembly, but the client has an updated version 1.1.0.0 of
Server.dll at its disposal.
In the new version, ServerObj has an additional method.

As long as the client doesn't try to use the new method, things will work
like before (when both client and server were using 1.0.0.0), but when the
client uses the new method, a RemotingException is thrown (of course - the
client proxy does have the method, but the server proxy doesn't).

Now is there a way to find out the version the server is using? All my
trials only give me the assembly version from the client (1.1.0.0), but I'd
need the version from the server to keep the client from using the new method.

Is there a way without modifying the server? The application is still using
.NET 1.1 btw.

I'd be really thankful for any suggestions...

Regards,
Martin Müller

.



Relevant Pages

  • Re: What doesnt lend itself to OO?
    ... >> proxy and instructs the server to constuct the real object. ... rather than client code. ... If 'clock' is instantiated in the server, ... > for the server interface at the OOA level. ...
    (comp.object)
  • This is going straight to the pool room
    ... or not the client has privilege to do what they're trying to do, ... The server environment is this: ... 3GL User action Routines that Tier3 will execute on your behalf during the ... Routine Name: USER_INIT ...
    (comp.os.vms)
  • [Full-Disclosure] R: Full-Disclosure Digest, Vol 3, Issue 42
    ... Full-Disclosure Digest, Vol 3, Issue 42 ... SD Server 4.0.70 Directory Traversal Bug ... Arkeia Network Backup Client Remote Access ...
    (Full-Disclosure)
  • Re: What doesnt lend itself to OO?
    ... > rather than client code. ... no way to do that without also touching the object with clock semantics ... will not encapsulate both clock semantics and network semantics. ... The server can do whatever it wants ...
    (comp.object)
  • RE: Fax monitor incoming + outgoing calls?
    ... problem between the client computer and the SBS server. ... Client is using the internal IP address of the SBS server as the ... To the folder redirection GPO issue: ...
    (microsoft.public.windows.server.sbs)