![]() |
|
|
|||||||
![]() |
MCSD - Load an dll from GAC in c#.net |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
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==?= |
|
|
|
|
#2 |
|
Posts: n/a
|
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 |
|
|
|
#3 |
|
Posts: n/a
|
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==?= |
|
|
|
#4 |
|
Posts: n/a
|
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 news > 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 |
|
|
|
#5 |
|
Posts: n/a
|
|
|
|
|
#6 |
|
Posts: n/a
|
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?= |
|
![]() |
| Thread Tools | Search this Thread |
|
|
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 |