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
1
vote
1 answer

bin-deploying DLLs banned in leiu of GAC on shared IIS 6 servers

I need to solicit feedback about a recent security policy change at an organization I work with. They have recently banned the bin-deployment of DLLs to shared IIS 6 application servers. These servers host many isolated web application pools. The…
craigmoliver
  • 6,499
  • 12
  • 49
  • 90
1
vote
1 answer

Using installshield to replace a same-versioned DLL in the GAC

We recently put out an update of one of our apps with a "test" DLL from a third party. The third party does not update their assembly versions on the dll's, only the file versions, so multiple apps can reference different "versions" of it. However,…
Kevin
  • 1,300
  • 5
  • 18
  • 35
1
vote
1 answer

Loading a DLL in the GAC

currently I have a problem with getting a DLL into the Windows GAC. I tried to follow the steps of creating a DLL and loading it as described in this blog…
Wolf
  • 11
  • 4
1
vote
0 answers

Referenced assembly in the GAC pointing to a copy beneath C:\WIndows\assembly\tmp

I'm trying to see which version of an assembly is being referenced at runtime by my application. I know the assembly is installed in the GAC because it's a third-party commercial product that was installed via an MSI, it's listed when I run gacutil…
rory.ap
  • 34,009
  • 10
  • 83
  • 174
1
vote
1 answer

GAC Assembly redirection for several .dlls

I'm trying to redirect a specific .dll, let's call it MyAssembly.dll. This assembly has two versions: MyAssembly.dll version 1.0.0.0 and MyAssembly.dll version 1.1.0.0 I want these two assemblies to redirect to its third version: 1.2.0.0. For…
Sonhja
  • 8,230
  • 20
  • 73
  • 131
1
vote
3 answers

How do I add a DLL to GAC

This is my code: Register(Assembly.GetExecutingAssembly()).Location); private void Register(String assemblyName) { System.Diagnostics.ProcessStartInfo processStartInfo = new System.Diagnostics.ProcessStartInfo("D://gacutil.exe",…
Islam Ibrahim
  • 85
  • 1
  • 9
1
vote
1 answer

Wix - Dynamically Register Assemblies to GAC

I am writing a Wix installer to install .NET assemblies to the GAC. Easy... My question is: is it possible to future proof this scenario so that I can pull ANY assemblies found in an existing network folder and register each of them - without having…
Jason Irwin
  • 1,985
  • 2
  • 29
  • 42
0
votes
1 answer

The Global Assembly Cache - Deployment via Codebase Questions

Basically we have many severs running many ASP.NET sites in different app pools. We roll updates every 2 weeks. My basic question comes down to this: Is using the GAC codebase feature with a URL that we maintain the latest versions of the class…
Joshua Enfield
  • 17,642
  • 10
  • 51
  • 98
0
votes
0 answers

Framework/Framework64 Directory VS GAC

In my .NET Framework 4.7.2 ConsoleApp with AnyCPU, i am tracing different assemblies loaded in current appdomain with AppDomain.CurrentDomain.GetAssemblies() public static void Main(string[] args) { …
0
votes
2 answers

Advanced Installer - search for file in global assembly cache (gac)

I have an Advanced Installer setup and during the installation process I need to find out whether Crystal Reports is installed on a system or not. It seems the best way is to look for the existence of CrystalDecisions.CrystalReports.Engine.dll in…
0
votes
3 answers

Detect if a specific version of an assembly is in the GAC

I have a list of assembly fully qualified names, and I check if some assembly is in the GAC where my app is running. For example, I'm looking to do something like: var result = AssemblyIsInGAC("mscorlib, Version=4.0.0.0, Culture=neutral,…
Lindsey1986
  • 381
  • 1
  • 3
  • 15
0
votes
1 answer

Where is Gacutil.exe?

Possible Duplicate: Location of Gacutil with vs 2008 I can't seem to find an answer to where Gacutil.exe is located? I'm on Windows 7, have all of the current .NET versions from 1.0 to 4.0, and visual studio 2008 and 2010 Professional…
Payson Welch
  • 1,388
  • 2
  • 17
  • 29
0
votes
2 answers

Change MySql.data version in Global Assembly Cache (GAC)

So I have previously developed a payroll system using c# way back 2010, and I decided to use it again as a reference, I had its ClickOne Application Deployment Manifest, but when I tried to run it an error appears "Unable to install or run the…
user7254740
  • 103
  • 1
  • 5
  • 17
0
votes
3 answers

How is windows not finding this assembly?

I keep getting this error in my windows logs: SharePointSocialNetworking.Facebook b0ceb144-b183-4b66-aa10-39fd9ee42bd4 Could not load file or assembly 'Microsoft.Contracts, Version=1.0.0.0, Culture=neutral, PublicKeyToken=736440c9b414ea16'…
Abe Miessler
  • 82,532
  • 99
  • 305
  • 486
0
votes
2 answers

Do supporting assemblies need to be registered in the GAC?

I recently had to register an assembly in my GAC for a custom sharepoint job I wrote. Once installed it began throwing an error saying that it could not load an assembly "or one of its dependencies". Do I need to register any of the supporting…
Abe Miessler
  • 82,532
  • 99
  • 305
  • 486