EnjoySharePoint YouTube Channel

GAC in Asp.Net

In this post, we will discuss what is GAC in.Net. Also, you can check out my previous post on ExecuteNonQuery(), ExecuteReader() and ExecuteScalar() in Ado.Net, Anonymous Types in C#.Net and WCF interview questions and answers in C#.Net.

Get Office 365 Enterprise E3 Or Business Premium Subscription & Try out all the features

– GAC stands for Global Assembly Cache.

– GAC can be termed as a registry of.Net framework for maintaining shared assemblies. This comes with.Net installation.

– Location of GAC is C:\Windows\assembly

– The GAC folder is accessible with security options-

1. The folder will only accept strong name assemblies.
2. The folder is accessible to the user with administrative privileges for placing assembly or removing the assembly.

– You can place an assembly into GAC in two ways:

1. Drag and Drop: Through explorer view, you can drag and drop the assembly to the GAC.

2. GACUtil.exe: You can put assembly to GAC using the command line utility GACUtil.exe

Gacutil -i “Path of the assembly”

It will put the dll into GAC.

– To remove an assembly from GAC you can use the same GACUtil utility as below:

Gacutil -u AssemblyName

The above command will remove the assembly from GAC.

– Windows registry will maintain the location of COM components whereas GAC will contain assembly.

– Windows registry cannot contain multiple versions of COM component whereas GAC can contain multiple versions of an assembly.

Check out Best Alternative to InfoPath -> Try Now
You May Also like the Following SharePoint Tutorials:

About Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SharePointSky.com

View all posts by Bijay Kumar →