Assembly.LoadFrom() & GAC

Discussion in 'ASP .Net' started by Timothy Parez, Feb 22, 2004.

  1. Hi,

    I use Assembly.LoadFrom to load an assembly on the hard drive
    but what if the Assembly is in the gac
    for example I want to get an instance of OleDbConnection.

    First I do something like

    Assembly providerAssembly =
    Assembly.LoadFrom(Path.Combine(this.providersPath,providerDef.Assembly));

    Then I use the CreateInstance method to get whatever I want
    this works for assemblies which are located on the hard drive but not in
    the GAC.


    Thnx.
    Timothy Parez, Feb 22, 2004
    #1
    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. wolf
    Replies:
    4
    Views:
    7,852
    dcushnie
    Sep 11, 2006
  2. posthumecaver
    Replies:
    0
    Views:
    323
    posthumecaver
    Aug 22, 2003
  3. Henrik de Jong

    Assembly.LoadFrom(...)

    Henrik de Jong, Jul 8, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    1,943
    Natty Gur
    Jul 8, 2004
  4. Oenone
    Replies:
    0
    Views:
    518
    Oenone
    Jul 11, 2005
  5. pkellner
    Replies:
    0
    Views:
    490
    pkellner
    Apr 27, 2007
Loading...

Share This Page