PC Review


Reply
Thread Tools Rate Thread

Assembly version from unloaded assembly

 
 
bw
Guest
Posts: n/a
 
      8th Aug 2003
Hi there

Can anyone tell me how to load information from an
assembly that is not loaded ie: on disk?

Thanks

 
Reply With Quote
 
 
 
 
Dave
Guest
Posts: n/a
 
      8th Aug 2003
You can get some basic information using

AssemblyName.GetAssemblyName(path);

This has the benefit of loading the assembly into the appdomain, and allows
access to some details of the assembly itself.


"bw" <(E-Mail Removed)> wrote in message
news:092901c35d91$7e739150$(E-Mail Removed)...
> Hi there
>
> Can anyone tell me how to load information from an
> assembly that is not loaded ie: on disk?
>
> Thanks
>



 
Reply With Quote
 
Dave
Guest
Posts: n/a
 
      11th Aug 2003
Oops, I meant to say that it does NOT load the assembly into the appdomain
(that's the side benefit).


"Bruce Wayne Wilkins" <(E-Mail Removed)> wrote in message
news:e8d6aN%(E-Mail Removed)...
> Thanks, but then how does one unload the assembly from the AppDomain?
>
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!



 
Reply With Quote
 
Richard Grimes [MVP]
Guest
Posts: n/a
 
      12th Aug 2003
Once an assembly is loaded into an appdomain you cannot unload it. The only
way to release the assembly library from memory is to close down the entire
appdoamin.

Richard
--
my email (E-Mail Removed) is encrypted with ROT13 (www.rot13.org)


Bruce Wayne Wilkins wrote:
> Thanks, but then how does one unload the assembly from the AppDomain?
>
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!



 
Reply With Quote
 
Bruce Wayne Wilkins
Guest
Posts: n/a
 
      13th Aug 2003
So is it loaded into the AppDomin or not?


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
Dave
Guest
Posts: n/a
 
      14th Aug 2003
If you use AssemblyName to access the file on disk then it is not loaded
into the appdomain. If you use one of the Assembly.Load or LoadFrom methods
then it is loaded into the appdomain and the only way to unload the assembly
is to unload the entire appdomain.

"Bruce Wayne Wilkins" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> So is it loaded into the AppDomin or not?
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!



 
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
Assembly not getting unloaded Ashutosh Microsoft C# .NET 2 24th Oct 2008 04:17 AM
The application requires that assembly office Version 12.0.0.0 be installed in the Global Assembly Cache (GAC) first. Bill Nguyen Microsoft VB .NET 2 30th May 2008 11:17 PM
Unloaded Assembly still occours in parent AppDomain Basti Microsoft C# .NET 1 2nd Nov 2006 09:06 AM
is there any way to get to a unique build verion of an assembly at runtime? e.g. a version that is unique to the time that the assembly was built? Daniel Microsoft Dot NET Framework 1 14th Dec 2004 04:10 PM
is there any way to get to a unique build verion of an assembly at runtime? e.g. a version that is unique to the time that the assembly was built? Daniel Microsoft C# .NET 1 10th Dec 2004 03:06 AM


Features
 

Advertising
 

Newsgroups
 


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