- Using Global Assembly Cache (GAC) Deployment Installing application components into the Global Assembly Cache (GAC) can be useful if you are installing components that will be used by multiple applications on the same machine, or if you need to run multiple versions of the same assembly on a single computer.
- In your C: windows assembly gac folder, create a folder for adodb and then within it, make another folder 7.0.3300.0b03f5f7f11d50a3a. Copy the ADODB.DLL to this folder. We had to do this thru the Cmd window because the GAC folder is not visible from windows explorer. It solved my problem and the app runs fine now.
- Sometimes you need a local copy of an assembly from the GAC and here is a quick tip on how to do it. The GAC can be found in the c: windows assembly directory, but if you try to browse it, the following custom shell extension appears.
- Mar 13, 2015 But in case you want to do this with Windows Explorer you may just type in the following path using Run menu or Windows Explorer address bar: C:windowsassemblyGACMSIL. Then move to the parent folder (by clicking on it in the explorer bar) to see all the GAC files in a normal explorer window.
- Launch the program 'Run' (Windows Vista/7/8: type it in the start menu search bar) and type: C:windowsassemblyGACMSIL. Then move to the parent folder (Windows Vista/7/8: by clicking on it in the explorer bar) to see all the GAC files in a normal explorer window. You can now copy, add and remove files as everywhere else.
Hi,
Thank you for posting your question on Microsoft Community!
After going through your description, it appears that you need more information GAC view, I would suggets you to go through the following information.
This article describes how to install an assembly.dll file in the Microsoft.NET Framework global assembly cache. To do this, you can use the Microsoft.NET Framework Software Development Kit (SDK) Global Assembly Cache tool. An assembly must have a strong name to be installed in the global assembly cache.
Method 1:
Make the following setting and check the issue status.
a. Press Windows Key and W key together.
b. Type in 'regedit' and press enter.
c. Go to the following location.
HKLMSoftwareMicrosoftFusion
d. create a DWORD value named 'DisableCacheViewer' and set it to value 1.
To do so: Important this section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756 (http://support.microsoft.com/kb/322756/)
How to back up and restore the registry in Windows.
Method 2:
I would suggest you torename the 'Shfusion.dll ' file located in the '%windir%'-
Microsoft.NETFrameworkvx.x.xxxx folder, where xxxx is the build number of the .NET Framework you are using.
Microsoft.NETFrameworkvx.x.xxxx folder, where xxxx is the build number of the .NET Framework you are using.
Hope this helps. Please do let us know if you need further help, we'll be happy assist you!
Active3 years, 11 months ago
I want to view the folders and sub folders in GAC. Also want to know about adding and removing from GAC.
To install we write this lines in command prompt by opening
Visual Studio command prompt
:-gacutil /i [assembly path]
But to uninstall we need only:-
gacutil /u [assembly name]
Why?
Bowdzone3,2901111 gold badges3030 silver badges4444 bronze badges
Rohit Vipin MathewsRohit Vipin Mathews8,3781111 gold badges4343 silver badges9494 bronze badges
5 Answers
Install:
View:
Open in Windows Explorer folder
- .NET 1.0 - NET 3.5:
c:windowsassembly
(%systemroot%assembly
) - .NET 4.x:
%windir%Microsoft.NETassembly
OR
gacutil –l
When you are going to install an assembly you have to specify where
gacutil
can find it, so you have to provide a full path as well. But when an assembly already is in GAC - gacutil
know a folder path so it just need an assembly name.MSDN:
sllsll51.1k1515 gold badges8989 silver badges137137 bronze badges
I'm a day late and a dollar short on this one. If you want to view the folder structure of the GAC in Windows Explorer, you can do this by using the registry:
- Launch regedit.
- Navigate to HKLMSoftwareMicrosoftFusion
- Add a DWORD called DisableCacheViewer and set the value to 1.
For a temporary view, you can substitute a drive for the folder path, which strips away the special directory properties.
- Launch a Command Prompt at your account's privilege level.
- If you elevate your privileges, you might not see the drive in Windows 7.
- Type SUBST Z: C:Windowsassembly
- Z can be any free drive letter.
- Open My Computer and look in the new substitute directory.
- To remove the virtual drive from Command Prompt, type SUBST Z: /D
As for why you'd want to do something like this, I've used this trick to compare GAC'd DLLs between different machines to make sure they're truly the same.
Lars Truijens38.6k66 gold badges110110 silver badges132132 bronze badges
Rakuen42Rakuen42
Launch the program 'Run' (Windows Vista/7/8: type it in the start menu search bar) and type:
C:windowsassemblyGAC_MSIL
Then move to the parent folder (Windows Vista/7/8: by clicking on it in the explorer bar) to see all the GAC files in a normal explorer window. You can now copy, add and remove files as everywhere else.
Julius KunzeJulius Kunze
To view the files just browse them from the command prompt (
cmd
), eg.:To add and remove files from the GAC use the tool
Klaus Byskov PedersenKlaus Byskov Pedersengacutil
89.5k2323 gold badges165165 silver badges212212 bronze badges
You install as assemblies by using:
- A setup program, that you author for your application.
- Using the
gacutil.exe
tool with the-i
option from the command line. - Dropping the assembly in
%windir%Assembly
(only up to .NET 3.5, CLR 2.0)
Windows Assembly Gac Microsoft.mshtml
You view the content of the GAC using:
- The
gacutil.exe
tool with the-l
option. - For .NET 2.0, 3.0 and 3.5 (CLR 2.0) browsing to
%windir%assembly
using the Windows Explorer.
Note that the (physical) GAC location has changed for .NET 4.0. It is no longer in
Christian.KChristian.K%windir%Assembly
, but now in %windir%Microsoft.NETassembly
. However, you should never write any code that depends on the physical location anyway, because given the tools available that is hardly necessary (some 'cool' homegrown system diagnostics tools aside).Windows Assembly Gac Folder
38k77 gold badges7878 silver badges112112 bronze badges