HighTechTalks DotNet Forums  

Re: How to get assembly version of remote object?

Dotnet Distributed Applications microsoft.public.dotnet.distributed_apps


Discuss Re: How to get assembly version of remote object? in the Dotnet Distributed Applications forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Michael Nemtsev
 
Posts: n/a

Default Re: How to get assembly version of remote object? - 06-30-2006 , 03:13 PM






Hello Martin,

Load assembly by name/version or filename and call AssemblyName.Version Property


MM> Dear community,
MM> I'm looking for a way to find out the assembly version of a remote
MM> type.
MM> In a .NET remoting application it's possible that the assembly
MM> version of a
MM> remoted type is not the same between the client and the server.
MM> Let's say the server has the type ServerObj in a version 1.0.0.0 in
MM> its
MM> Server.dll assembly, but the client has an updated version 1.1.0.0
MM> of
MM> Server.dll at its disposal.
MM> In the new version, ServerObj has an additional method.
MM> As long as the client doesn't try to use the new method, things will
MM> work like before (when both client and server were using 1.0.0.0),
MM> but when the client uses the new method, a RemotingException is
MM> thrown (of course - the client proxy does have the method, but the
MM> server proxy doesn't).
MM>
MM> Now is there a way to find out the version the server is using? All
MM> my trials only give me the assembly version from the client
MM> (1.1.0.0), but I'd need the version from the server to keep the
MM> client from using the new method.
MM>
MM> Is there a way without modifying the server? The application is
MM> still using .NET 1.1 btw.
MM>
MM> I'd be really thankful for any suggestions...
MM>
MM> Regards,
MM> Martin Müller
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.