Questions tagged [global-assembly-cache]

The global assembly cache is a .NET machine-wide code cache that stores assemblies designated to be shared by multiple applications.

More information about the global assembly cache (or GAC) can be found in the MSDN documentation: Global Assembly Cache.

There are two methods for deploying assemblies to the GAC:

  • Though an installer designed to work with GAC
  • Through the gacutil.exe utility from the Windows SDK

GAC assemblies are stored in the following directories on Windows:

  • .NET 4 and up: %windir%\Microsoft.NET\assembly
  • Prior versions of .NET: %windir%\assembly
56 questions
4
votes
1 answer

Assembly not being located in GAC but gacutil shows it's there

I have noticed some strange behaviour on my system regarding the Global Assembly Cache (GAC). The assembly I'm interested in is log4net Version=1.2.11.0 The output of gacutil /l "log4net" is: C:\Windows\system32>gacutil /l "log4net" Microsoft (R)…
m.edmondson
  • 30,382
  • 27
  • 123
  • 206
3
votes
3 answers

How to deploy multiple programs referencing one DLL?

We have many projects using interop & related DLL. All projects have individual DLL reference with setup, but basically all of them use same DLL. So that's creates problem many times if any DLL register/unregister while installation/unistallation of…
XYZ
3
votes
1 answer

WiX Conditional Feature/Component Orphaned on Uninstall

Edit: Quoting myself because I summarized the issue much better in one of the comments below… I have a condition that is true when the package is installed, but not true when it is removed. I expected MSI to remember that it had installed the…
Rozwel
  • 1,990
  • 2
  • 20
  • 30
3
votes
2 answers

Can I register to the GAC with Pascal scripting (InnoSetup)?

I'm using InnoSetup to install an application I built. My client requests that it downloads the latest DLLs upon install using this InnoSetup addon: http://www.sherlocksoftware.org/page.php?id=50 Simple enough. I got it working how I want to, but…
Honus Wagner
  • 2,830
  • 13
  • 44
  • 61
3
votes
1 answer

System.IO.FileLoadException. Could not load Accessibility, Version=2.0.0.0

I have just recently been getting this issue and it may be due to something I installed on my machine. I cannot recall though. Every once in a while I will receive a Microsoft .NET Framework message box that pops up on my computer and it tells…
3
votes
1 answer

C# application copies files from GAC to execution folder

I am somewhat new to using the Global Assembly Cache in .NET, and have a question regarding how it works since I haven't been able to find anything online. My msi(created using Visual Studio Installer extension (using Visual Studio 2015)) installs a…
2
votes
2 answers

Confusion about GAC

While the interview , I was confused after interviewer asked this question about Global Assembly Cache (GAC). What should be the answer? Question 1: Instead of keeping the assembly in GAC, If we create the directory and keep our assemblies there and…
Red Swan
  • 15,157
  • 43
  • 156
  • 238
2
votes
3 answers

Do I ever really need to use the Global Assembly Cache (GAC)?

I've been building .NET web applications for many years now, and I never use the GAC? What am I missing? Or am I better off staying away from it?
Ian G
  • 29,468
  • 21
  • 78
  • 92
2
votes
2 answers

See if any application has a DLL from the GAC loaded

I'm trying to deploy new copies of my DLL to the GAC on remote servers, but I need to identify if any processes currently running have a loaded copy of the DLL I'm replacing - I'd like to restart them, or at least tell the user. For example, Biztalk…
SqlRyan
  • 33,116
  • 33
  • 114
  • 199
2
votes
1 answer

How to add VB.NET Class to GAC, and use it in Code-Behind

I created a VB.NET Class, and created a strong key, and added it to the GAC using the GacUtil. That part has gone smoothly. The Assembly is installed in the GAC and seems to be installed/configured correctly. FYI, the assembly is a Class called…
2
votes
0 answers

Missing GAC with .NET Framework 4 Installation

I've installed the full version of .NET Framework 4 (Client Profile + Extended) on a customer machine which is running Windows Small Business Server 2003 Standard Edition. The installation was successful without any errors. There were no errors…
SF Lee
  • 1,767
  • 4
  • 17
  • 32
2
votes
1 answer

After register new assembly in GAC, Visual Studio doesn't find any dll

I've registered some assemblies to Global Assembly Cache executing the following the command at Visual Studion Command Prompt. gacutil /il MyAssemblyList.txt After that, I can't compile anything in Visual Studio, because It can't find any DLL. When…
1
vote
1 answer

Assembly needs to be redeployed into GAC every time its user app is changed

So basically we have an strong-names (strongly signed) assembly x.dll which is used by one of our components, App.exe. The signing key of the assembly is in our repository and it the assembly is signed by means of writing [assembly:…
Armen Tsirunyan
  • 130,161
  • 59
  • 324
  • 434
1
vote
1 answer

How to force use of GAC'd assembly?

I am working on an application that uses an assembly that must be in the GAC. My problem is that when I update the assembly in the GAC I have to reboot the machine to get my service to pick up the new assembly. Is there some way to force services…
Abe Miessler
  • 82,532
  • 99
  • 305
  • 486
1
vote
0 answers

Prevent InstallShield from uninstalling GAC assembly on update

I have an assembly that is installed in the GAC by my InstallShield installer. The component is marked as Permanent so that the DLL is kept when the program gets uninstalled. So far it works fine. However, if I update the program, I expect that two…
piwi
  • 5,136
  • 2
  • 24
  • 48