What is Global Assembly Cache (GAC) and what is the Purpose
of it?

Answer Posted / guest

Each computer where the common language runtime is installed
has a machine-wide code cache called the global assembly
cache. The global assembly cache stores assemblies
specifically designated to be shared by several applications
on the computer. You should share assemblies by installing
them into the global assembly cache only when you need to.
Steps
- Create a strong name using sn.exe tool
eg: sn -k keyPair.snk
- with in AssemblyInfo.cs add the generated file name
eg: [assembly: AssemblyKeyFile("abc.snk")]
- recompile project, then install it to GAC by either
drag & drop it to assembly folder (C:\WINDOWS\assembly OR
C:\WINNT\assembly) (shfusion.dll tool)
or
gacutil -i abc.dll

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is loosely coupled solution in.net?

653


Is .net an object oriented language? What are their components?

606


What is the best way to crack the certification?

1467


Explain how to manage pagination in a page using .net?

630


What method do you use to explicitly kill a users session? How?

605






How is meant by dll in .net?

676


How is .net able to support multiple languages?

686


How you apply a theme in whole application in .Net?

698


What are the differences between com architecture and.net architecture?

660


Tell us why do we use the “using” statement?

632


Difference between dispose and finallize method?

780


Write Code for DataSet,Datareader,and by deleting the button gridview should be empty?

1757


Define code access security (cas)?

642


why you wouldn't want to write into it even if you could

668


Explain about .net?

707