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 ?    11 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it possible to create a custom filter?

561


How does servicing work for the .net framework 3.0? If I install the .net framework 3.0, can I get service updates for the .net framework 2.0?

511


What is iobjectset? : Entity framework

579


What are the components required to create a route in mvc?

600


Explain entity lifecycle? : Entity framework

538






Explain the role of assembly in the .net framework.

562


What are Action Methods in ASP.NET MVC?

568


How to make sure Client Validation is enabled in ASP.Net MVC

554


What are the 2 ways of adding constraints to a route?

544


What are ajax helpers in mvc?

507


How the ‘page lifecycle’ of ASP.Net MVC does works?

583


How does the .net framework 3.0 relate to windows vista?

556


Explain the methods used to render the views in mvc?

541


How would you deploy your old applications with .net framework 4.0? Are the old applications compatible?

475


What is difference between html.beginform and ajax.beginform?

596