PC Review


Reply
Thread Tools Rate Thread

Assembly.LoadFrom how it is understanding the version of target DLL at Web Server

 
 
posthumecaver
Guest
Posts: n/a
 
      22nd Aug 2003
Well you can get the picture from the above question I guess.

How Assembly.LoadFrom understand the version of the Assembly at the
webserver and decide to download to DownloadCache.

I try to do samething with FileVersionInfo but of course it is not doing it.
I looked a method in Assembly class probing version info with an URI but it
doesn't exist also.

Anybody has an idea.

Regards.

MS


 
Reply With Quote
 
 
 
 
Dave
Guest
Posts: n/a
 
      24th Aug 2003
There are several issues when using LoadFrom on a file located on a
webserver. Even though the assembly may be signed with a key, the key and
the version are completely ignored when the runtime initially requests the
assembly. The reason is that the runtime forms an http request for the
assembly that uses if-modified-since in the header. This article explains
what is happening...

http://msdn.microsoft.com/msdnmag/is...tSmartClients/

The result is that the time-date stamp on the file at the server is used to
determine if a newer version of the assembly should be downloaded to the
client machine. The .net versioning is used only after the file has been
downloaded.

If you want to determine the .net versioninfo of a file on a remote server
you will have to roll your own mechanism for this. I wrote a little web
service for our app that does exactly this.



"posthumecaver" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Well you can get the picture from the above question I guess.
>
> How Assembly.LoadFrom understand the version of the Assembly at the
> webserver and decide to download to DownloadCache.
>
> I try to do samething with FileVersionInfo but of course it is not doing

it.
> I looked a method in Assembly class probing version info with an URI but

it
> doesn't exist also.
>
> Anybody has an idea.
>
> Regards.
>
> MS
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unload an Assembly loaded via Assembly.LoadFrom() GD Microsoft Dot NET Compact Framework 4 10th Aug 2006 04:12 AM
Diif Assembly.Load and Assembly.LoadFrom =?Utf-8?B?R3VqanU=?= Microsoft VB .NET 1 22nd Jul 2005 09:54 AM
Restricting access to Assembly.LoadFrom call within an assembly based on strong names Nicholas Paldino [.NET/C# MVP] Microsoft C# .NET 3 9th Dec 2003 08:32 PM
Assembly.LoadFrom how it is understanding the version of target DLL at Web Server posthumecaver Microsoft ASP .NET 0 22nd Aug 2003 11:32 AM
Re: AxImporter, Assembly.LoadFrom(), Assembly.GetTypes() Nicholas Paldino [.NET/C# MVP] Microsoft C# .NET 3 10th Jul 2003 02:48 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:13 PM.