Questions tagged [gac]

The gac tag is for issues relating to the global assembly cache.

The Global Assembly Cache or GAC is a machine-wide .NET assemblies cache for Microsoft's CLR platform. The approach of having a specially controlled central repository addresses the shared library concept and helps to avoid pitfalls of other solutions that lead to drawbacks like DLL hell.

1053 questions
42
votes
4 answers

When should I deploy my assemblies into the GAC?

I would like to know practically what kind of Assemblies should I deploy in GAC. Case 1: If in my Solution multiple project uses log4net.dll then should it be deployed in GAC? Case 2: If I have multiple application deployed in a machine each using…
Amitabh
  • 59,111
  • 42
  • 110
  • 159
42
votes
4 answers

How to prevent a .NET application from loading/referencing an assembly from the GAC?

Can I configure a .NET application in a way (settings in Visual Studio) that it references a "local" assembly (not in GAC) instead of an assembly within the GAC, although both assemblies have the same name and the same version?
Flo
  • 27,355
  • 15
  • 87
  • 125
39
votes
4 answers

C# how to register assembly in the GAC without GacUtil?

I need to register an assembly in the GAC using batch file. Is there a way to find the installation location of GacUtil.exe or is there a way to register the assembly without GacUtil?
Benny F
  • 505
  • 1
  • 7
  • 9
38
votes
2 answers

GAC 32bit vs. 64bit

I've been searching for a while trying to understand this better, but am not finding any straight-forward answers on this. I have a component that I need to add to the GAC. I'm running Windows 7 64-bit, and in an effort to troubleshoot an issue…
Jerad Rose
  • 15,235
  • 18
  • 82
  • 153
34
votes
7 answers

Drag and drop a DLL to the GAC ("assembly") in windows server 2008 .net 4.0

I've trying to deploy some code to a client machine, where I don't want to install MS windows SDK tools. This means don't have access to "gacutil". I also have not created an installer for my code. It seems that these might be the only two…
TizzyFoe
  • 1,489
  • 1
  • 15
  • 28
33
votes
15 answers

Can not find System.Windows Assembly

This is the error we get: Error 1 The type 'System.Windows.Point' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'.…
Student
30
votes
4 answers

Can I download and install gacutil.exe without having to install VS or the SDK?

I want an administrator to register some DLLs for me, but he would probably prefer not to install the whole SDK. Can he just install gacutil.exe? If so, where can he get it? Do I just email the gacutil.exe file to him, and where does he have to put…
richard
  • 12,263
  • 23
  • 95
  • 151
29
votes
2 answers

Where is the location of GAC?

I wanted to become more familiar with the .Net Global Assembly Cache. Various sources online say it can be found in Explorer in C:\WINNT\Assembly. But I don't seem to have a WINNT folder under C: on my Windows XP machine. I have "Show Hidden…
user316117
  • 7,971
  • 20
  • 83
  • 158
29
votes
5 answers

Assembly installed into the GAC not showing up in Visual Studio

This sounds related to this question, but they aren't the same thing. That question had no assemblies showing up. Mine has everything except the specific one I installed. I'm hoping someone has a solution to this... am I doing something wrong? Or…
user47589
29
votes
5 answers

Check GAC for an assembly

How to programmatically check GAC for an assembly?
Jessy
  • 291
  • 1
  • 3
  • 3
28
votes
4 answers

Path of DLL installed to the GAC

How can I get the (physical) installed path of a DLL that is (may be) registered in GAC? This DLL is a control that may be hosted in things other than a .Net app (including IDEs other than VS...). When I use…
kpollock
  • 3,899
  • 9
  • 42
  • 61
27
votes
1 answer

Could not load file or assembly 'System.Net.Http'

1. Error when starting app Could not load file or assembly 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. Stack Trace:…
one_mile_run
  • 3,264
  • 4
  • 26
  • 29
27
votes
1 answer

Use Visual Studio Setup Project to automatically register and GAC a COM Interop DLL

I've created a .NET assembly for COM interop and it is working well on my development machine. I'm currently trying to figure out how to deploy the DLL to a target machine using Visual Studio's "Setup Project." How can I use the VIsual Studio…
Ben McCormack
  • 32,086
  • 48
  • 148
  • 223
26
votes
3 answers

Unable to uninstall an Assembly from GAC?

I am unable to uninstall an Assembly (log4net.dll) from GAC. It is giving following error. "Assembly is required by one or more applications". However if I search the Assembly using ProcessExplorer nothing comes up? How can I remove this Assembly…
Amitabh
  • 59,111
  • 42
  • 110
  • 159
25
votes
7 answers

Why should I NOT use the GAC?

There have been a few questions asked along this line stackoverflow such as What are the advantages and disadvantages of using the GAC and When and when-not to install into the GAC? and a few people have asked it on the web expamle. I can't any…
wusher
  • 12,291
  • 22
  • 72
  • 95
1
2
3
70 71