Dynamic Loading of Private Assemblies?

Discussion in 'ASP .Net' started by Spam Catcher, Dec 9, 2005.

  1. Spam Catcher

    Spam Catcher 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.

    --
    Stan Kee ()
    Spam Catcher, Dec 9, 2005
    #1
    1. Advertising

  2. Spam Catcher

    Paul Gielens Guest

    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/
    ###
    Paul Gielens, Dec 9, 2005
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Terry McKiernan
    Replies:
    0
    Views:
    1,368
    Terry McKiernan
    Jul 7, 2003
  2. Timothy
    Replies:
    1
    Views:
    525
    Gaurav Khanna [C# MVP]
    Jan 27, 2004
  3. Timothy
    Replies:
    1
    Views:
    409
    Gaurav Khanna [C# MVP]
    Jan 27, 2004
  4. Barry Kelly
    Replies:
    4
    Views:
    4,700
    Barry Kelly
    Dec 7, 2004
  5. Chris Mohan

    Private Assemblies & Strong Names??

    Chris Mohan, Jul 13, 2004, in forum: ASP .Net Security
    Replies:
    1
    Views:
    223
    Jim Cheshire [MSFT]
    Jul 13, 2004
Loading...

Share This Page