Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Assembly.LoadFrom() & GAC

Reply
Thread Tools

Assembly.LoadFrom() & GAC

 
 
Timothy Parez
Guest
Posts: n/a
 
      02-22-2004
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.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem to remove Assembly from GAC? owais ASP .Net 6 08-20-2010 09:45 AM
Loading Assemblies at runtime (...from the GAC) Timothy ASP .Net 1 01-27-2004 06:45 AM
GAC install Alan Seunarayan ASP .Net 1 01-16-2004 02:24 PM
Deploy Assembly to GAC, and additional file system location Matt Gollob ASP .Net 0 11-18-2003 12:46 AM
how to reference a shared assembly from the GAC ? Joe Abou Jaoude ASP .Net 1 11-06-2003 10:08 PM



Advertisments