Dynamic Loading of Private Assemblies?

  • Thread starter Thread starter Guest
  • Start date Start date
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.
 
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

Back
Top