Go Back   Velocity Reviews > Newsgroups > MCSD
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

MCSD - Load an dll from GAC in c#.net

 
Thread Tools Search this Thread
Old 04-15-2005, 01:57 PM   #1
Default Load an dll from GAC in c#.net


Hi all.
This is my first post here.i like to know how to refer to a dll located in
the GAC folder.Call any one suggest me how to do it ..

Example
i have 2 version of GACCheck.dll installed in the Gac folder..
If i want to refer to this dll of version 2 in my project wht should i do .

Guide me


=?Utf-8?B?U2VudGhpbA==?=
  Reply With Quote
Old 04-16-2005, 01:21 AM   #2
Daniel Joskovski
 
Posts: n/a
Default Re: Load an dll from GAC in c#.net
Hi Senthil,
For referencing assemblies in GAC you must to have same version of the
assemblies in another folder, so you will reference this assembly, and in
runtime CLR will check GAC and use the same version from GAC if it can find
it.

Reards,
Daniel


"Senthil" <> wrote in message
news:9195F3EE-DBDE-4E2A-AB36-...
> Hi all.
> This is my first post here.i like to know how to refer to a dll located

in
> the GAC folder.Call any one suggest me how to do it ..
>
> Example
> i have 2 version of GACCheck.dll installed in the Gac folder..
> If i want to refer to this dll of version 2 in my project wht should i do

..
>
> Guide me





Daniel Joskovski
  Reply With Quote
Old 04-18-2005, 07:49 AM   #3
=?Utf-8?B?U2VudGhpbA==?=
 
Posts: n/a
Default RE: Load an dll from GAC in c#.net
Hi Daniel,
Thanks for the comments.
Then y we need the concept can GAC.We can just place different versions in
different folders and access it from that specific folder.
To my understanding GAC is a common place where we can place different
verions of DLLs and access the appropriate version when we want.



=?Utf-8?B?U2VudGhpbA==?=
  Reply With Quote
Old 04-18-2005, 05:02 PM   #4
Daniel Joskovski
 
Posts: n/a
Default Re: Load an dll from GAC in c#.net
Hi Senthil,

Basically you are right, but every strongnamed assembly is signed. When you
put that assembly in GAC, runtime checks the assembly and when you latter
use this assembly from GAC this check is not performed, so referencing
assembly from GAC improves performance. The GAC is complex structure of
subfolders in which you can have many files with same name "myassembly.dll"
for example, which protects us from so-called "dllhell" when one software
vendor put "myassembly.dll" in \windows\system32 folder and another vendor
put own "myassembly.dll" in \windows\system32 folder which overwrites first
file and spoil the application from first vendor.

Regards,
Daniel

"Senthil" <> wrote in message
news11A9ADB-6339-44A9-A512-...
> Hi Daniel,
> Thanks for the comments.
> Then y we need the concept can GAC.We can just place different versions in
> different folders and access it from that specific folder.
> To my understanding GAC is a common place where we can place different
> verions of DLLs and access the appropriate version when we want.
>





Daniel Joskovski
  Reply With Quote
Old 04-19-2005, 09:37 AM   #5
=?Utf-8?B?U2VudGhpbA==?=
 
Posts: n/a
Default Re: Load an dll from GAC in c#.net
Can i get ur mailid.Or can u mail me at


=?Utf-8?B?U2VudGhpbA==?=
  Reply With Quote
Old 04-20-2005, 06:01 AM   #6
=?Utf-8?B?c2VyZ2UgY2FsZGVyYXJh?=
 
Posts: n/a
Default RE: Load an dll from GAC in c#.net
Hi,

I would say that one way to force the use of a particular version of you
assembly in the gag is to specifeid the version you want to used by
specifying the corresponding redirection entry in application config file

serge

"Senthil" wrote:

> Hi all.
> This is my first post here.i like to know how to refer to a dll located in
> the GAC folder.Call any one suggest me how to do it ..
>
> Example
> i have 2 version of GACCheck.dll installed in the Gac folder..
> If i want to refer to this dll of version 2 in my project wht should i do .
>
> Guide me



=?Utf-8?B?c2VyZ2UgY2FsZGVyYXJh?=
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
error: java.lang.UnsatisfiedLinkError: Can't load library: /home/nalgo01/libcImpl.so gopinath511 Software 0 01-07-2009 09:13 AM
How to load Two iframe in one aspx page? pratima Software 2 02-02-2008 03:17 AM
IE 7 Slow Load lungfsh General Help Related Topics 1 10-24-2007 06:56 PM
Info about load balancing in cisco routers and switches!! vishamr2000 Hardware 0 06-22-2007 05:42 PM
Adsl Router > Dual Wan Load Balancing Router > 24 port Switch Hub nazeth Hardware 0 03-28-2007 09:36 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46