Re: How to get assembly version of remote object?
- From: "Tasos Vogiatzoglou" <tvoglou@xxxxxxxxx>
- Date: 2 Jul 2006 11:08:11 -0700
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
.
- Next by Date: Re: MSDTC and distributed Transactions.
- Next by thread: Re: MSDTC and distributed Transactions.
- Index(es):
Relevant Pages
|