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
What is loosely coupled solution in.net?
Is .net an object oriented language? What are their components?
What is the best way to crack the certification?
Explain how to manage pagination in a page using .net?
What method do you use to explicitly kill a users session? How?
How is meant by dll in .net?
How is .net able to support multiple languages?
How you apply a theme in whole application in .Net?
What are the differences between com architecture and.net architecture?
Tell us why do we use the “using” statement?
Difference between dispose and finallize method?
Write Code for DataSet,Datareader,and by deleting the button gridview should be empty?
Define code access security (cas)?
why you wouldn't want to write into it even if you could
Explain about .net?