Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / CLR / September 2003

Tip: Looking for answers? Try searching our database.

How to tell if an assembly in download cache has been updated?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Me - 10 Sep 2003 19:49 GMT
Tried this in m.p.framework a couple of days ago with no response.  I'll try here:

I'm loading an assembly from a URL using Assembly.LoadFrom().

Is there any way to tell if the current version of the assembly
already existed in the application download cache.

I need to do an expensive operation each time the assembly changes,
but I'd like to avoid it if the assembly hasn't changed (although
functionally it works if I do it every time I load it).

If there's not an automatic way, I guess I write logic to manually
check the timestamp of the assembly on the server and compare it
against a locally stored timestamp.  I'd rather not have to do that
though.

Thanks for any help!
Conrad Zhang - 11 Sep 2003 06:27 GMT
If it is not strongly named, then the bits will be downloaded everytime.

If it is strongly named, and the version number does not change, the bits in
download cache will be used, regardless the bits in server have been changed
or not.

Alan's Blog describes exactly how the framework http download works.
http://blogs.gotdotnet.com/alanshi/commentview.aspx/d3b8c7d9-b0c6-47fd-8ddf-20db
971ba80d


Hope that helps.

> Tried this in m.p.framework a couple of days ago with no response.  I'll try here:
>
[quoted text clipped - 13 lines]
>
> Thanks for any help!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.