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
24
votes
1 answer

Can't find System.Net.Http.Formatting dll

I have a clean installation of Visual Studio 2015 RC. I don't have VS2013 installed. I loaded a solution and the System.Net.Http.Formatting reference is broken, when I try to add the reference I don't find it in the GAC.
Orlando Osorio
  • 3,116
  • 7
  • 29
  • 52
23
votes
4 answers

How to check GAC assembly details on Windows Server 2012?

How can you check GAC assembly details Windows Server 2012? I managed to register a DLL via Powershell, now I need to verify that it is really done.
Binu Bhasuran
  • 468
  • 1
  • 4
  • 9
22
votes
2 answers

Install-Package : Failed to add reference to 'System.Runtime'

I'm trying to install the Autofac nuget package in my project using the command Install-Package -Prerelease Autofac but it fails with the error Install-Package : Failed to add reference to 'System.Runtime'. Please make sure that it is in the Global…
Tomas Aschan
  • 58,548
  • 56
  • 243
  • 402
21
votes
4 answers

Register Multiple Assemblies to the GAC in Vista

I've got a whole directory of dll's I need to register to the GAC. I'd like to avoid registering each file explicitly- but it appears that gacutil has no "register directory" option. Anyone have a fast/simple solution?
Evan
  • 2,113
  • 1
  • 20
  • 24
20
votes
8 answers

Forcing the ASP.NET Application to load the assembly from bin not from GAC

Is there any way to force my asp.net application to load the assembly from local bin directory since there is another older version of the assembly with the same name in the gac? I can't delete the gac version since other applications are using it…
Khaled Musaied
  • 2,513
  • 3
  • 25
  • 38
20
votes
2 answers

Is it possible to Load an assembly from the GAC without the FullName?

I know how to load an assembly from a filename, and also from the GAC. As My .msi file will put a dll project into the GAC, I'm wondering if it's possible to load it from the GAC unknowing the FullName (I mean just with the assembly name, or even…
metalcam
  • 392
  • 2
  • 16
20
votes
5 answers

.NET Reference "Copy Local" True / False Being Set Based on Contents of GAC

We had a very interesting problem with a Win Forms project. It's been resolved. We know what happened, but we want to understand why it happened. This may help other people out in the future who have a similar problem. The WinForms project failed on…
D-Sect
  • 537
  • 3
  • 10
  • 22
19
votes
2 answers

.NET assembly loading priorities

I have a solution with 3 projects (GUI, BL and DAL). The DAL assembly is signed and deployed in the GAC. When I build the solution the DAL is compiled and the assembly placed in the bin folder of the main project. But when I run the application, it…
Dante
  • 3,833
  • 4
  • 38
  • 55
18
votes
7 answers

Use PowerShell to view contents of the Global Assembly Cache (GAC)

Is there a way to use PowerShell to view the contents of the GAC?
GuyBehindtheGuy
  • 1,368
  • 2
  • 17
  • 36
17
votes
1 answer

Microsoft.SqlServer.Types.dll in the Global Assembly Cache?

I am currently struggling with deployment problems caused by Microsoft.SqlServer.Types and its associated unmanaged library, SqlServerSpatial110.dll - both for Microsoft SQL Server 2012. The problems are trivially easy to solve, just typical missing…
Xharlie
  • 2,350
  • 3
  • 19
  • 39
16
votes
4 answers

I can install via gacutil, but not uninstall the same dll

I have installed a DLL using the gacutil. gacutil.exe /i SI.ArchiveService.CommonLogic.Exceptions.dll Using the gacutil /l shows that it is indeed installed. SI.ArchiveService.CommonLogic.Exceptions, Version=1.0.0.0, Culture=neutral,…
Kasper Hansen
  • 6,307
  • 21
  • 70
  • 106
16
votes
2 answers

Why doesn't the office PIA install correctly to the GAC?

I am currently working on a c# project, where I need to access Outlook. The development is being done on two different machines, one of which has office installed, and one of which doesn't. I previously asked how to compile my project against the…
Boris
  • 5,094
  • 4
  • 45
  • 71
15
votes
3 answers

Assembly in GAC is not copied to output in project that references a project that references the GAC assembly with CopyLocal=true

I have a "Project A" that references System.Web.Mvc with CopyLocal=TRue. System.Web.Mvc is in the GAC both on my local maching and on the buildserver. I also have a "Project B" that references "Project A" in the output for "Project B" System.Web.Mvc…
khebbie
  • 2,490
  • 3
  • 31
  • 53
15
votes
1 answer

Trouble registering ChilkatDotNet4.dll to the GAC

I'm trying to add a .NET 4.0 .dll to the GAC. I am attempting to do this because it is published by a 3rd party company as both a 32 and 64bit .dll which I must use from different apps on different platforms in both formats. At any rate, I am…
fordareh
  • 2,923
  • 2
  • 26
  • 39
15
votes
10 answers

Could not load file or assembly 'Oracle.DataAccess' or one of its dependencies. An attempt was made to load a program with an incorrect format

I have installed a Web app on IIS 7.0 Windows Server 2008 R2 64bit. I am referring an oracle.DataAccess.dll; When I try to access the application I get the following message: "Could not load file or assembly 'Oracle.DataAccess' or one of its…
Smehrt Tonni
  • 193
  • 2
  • 2
  • 16
1 2
3
70 71