Dynamic Loading of Private Assemblies?

G

Guest

Does anyone have an example on how to dynamically load private assemblies
in ASP.NET - like what DotNetNuke does?

Do private assemblies have to be in the BIN directory... or can they be
located anywhere in the file system?

Thanks.
 
P

Paul Gielens

Hi Stan,
Does anyone have an example on how to dynamically load private assemblies
in ASP.NET - like what DotNetNuke does?

AppDomain domain = AppDomain.CreateDomain("loader");
Bar bar = (Bar) domain.CreateInstanceFromAndUnwrap("Foo.dll", "Foo.Bar");
AppDomain.Unload(domain);
Do private assemblies have to be in the BIN directory... or can they be
located anywhere in the file system?

A private assembly is a assembly that is available to particular
applications where they are kept. And cannot be references outside the scope
of the folder where they are kept.


Best regards,
Paul Gielens

Visit my blog @ http://weblogs.asp.net/pgielens/
###
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top