Hi
can any one tell me how can i use assembly added in GAC.............?
Hi
can any one tell me how can i use assembly added in GAC.............?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Satyapriya NayakRank #47 · 31.5K reputationPosted Jan 18, 2012, 5:28 PM EST
Please refer the below links
http://www.codeproject.com/KB/cs/usedllgac.aspx
http://www.codeproject.com/KB/dotnet/demystifygac.aspx
Thanks
Jignesh TrivediRank #16 · 50.3K reputationPosted Jan 18, 2012, 6:01 PM EST
before install your assembly in GAC, your assembly must have storng name.
Turn off verification for the assembly if you're storing the assembly in the GAC. By default, the GAC verifies the strong name of each assembly. If the assembly is not signed by using the private key, this verification fails. So, for development and testing purposes, you can relax this verification for an assembly by issuing the following command:
sn.exe -Vr MyFile.dll
When you're ready to deploy a delay-signed assembly, you need to sign it with your private key:
sn.exe -R MyFile.dll MyKeyFile.snk
Finally, you can instruct the GAC to resume verification for an assembly by issuing the following command:
sn.exe -Vu MyFile.dll
In order to share a .NET assembly with multiple applications installed on the same machine, it needs to be installed as Shared Assembly in the Global Assembly Cache (GAC).
gacutil /i MyFile.dll
hope this help.