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 / August 2007

Tip: Looking for answers? Try searching our database.

loading referenced assemblies from a stream or bytes

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dave - 22 Aug 2007 06:58 GMT
I want to be able to read then dynamically load a main and dependent
assemblies from encrypted sources.

I can get the load the first one into memory by using assembly.load from
bytes. Is there a way to do this for the referenced assemblies as well? Not
system assemblies but the others that I create for a solution that are not
part of the main assembly.

Thanks,
Dave
Marc Gravell - 22 Aug 2007 08:12 GMT
It looks like the AppDomain.AssemblyResolve only fires after the
event, and doesn't allow you to override the behavior ;-(

Well... once you have loaded one assembly you could perhaps load
pre-emptively by walkint the reference tree (GetReferencedAssemblies).
You need to keep track of what you have loaded, not necessarily to
prevent re-loads (the framework will tae care of this), but more to
prevent cycling (there are loops at the bottom...).

Marc
Dave - 23 Aug 2007 15:10 GMT
Thanks Marc. Will look into that.

> It looks like the AppDomain.AssemblyResolve only fires after the event,
> and doesn't allow you to override the behavior ;-(
[quoted text clipped - 6 lines]
>
> Marc

Rate this thread:







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.