Adding and removing controls to GAC manually (Vista, Win7) Simply copy the dll files from the installation directory to C: WINDOWS assembly. This is equivalent to running the gacutil.exe utility. To remove the assemblies, open C: WINDOWS assembly and select the assemblies you want removed. Press DELETE on the keyboard.
I'm trying to deploy a VS2013 project containing the Oracle ODP.NET library to a Windows 2008 IIS server, and receive an error 'Could not load type 'OracleInternal.Common.ConfigBaseClass' from assembly 'Oracle.ManagedDataAccess, Version=4.121.2.0.' ' From what I've found online this is caused by a conflict between the project's ODP and the server having ODP in the GAC. Instructions are then to remove ODP from the GAC.
There are Oracle DLLs in the GAC on the server. We are 99% certain that the DLLs wound up in the GAC from a prior attempt to set up Oracle on that box a while back, as no other projects on that server should be using Oracle. So we should be safe removing it from the GAC.
However, gacutil.exe is only available in Visual Studio, and we are not allowed to install Visual Studio onto the server. So how do we uninstall the Oracle DLLs from the GAC without having gacutil.exe available on the server?
Can we just delete them from the directory? Or do we need to copy over gacutil.exe from my workstation to the server in order to do this? Or is there another approach? (preferably not involving registry edits) Any advice appreciated, thanks.
You should be able to do it from using the Windows interface as follows providing you have administrator privileges. Navigate to the GAC, which is located at%systemdrive% Windows Assembly.
Right-click each assembly file that is included in your application, click Uninstall, and then click Yes to confirm If you are unable to uninstall the dlls via the above method you can access the GAC folder without the special view by opening a run command and entering the path below and hitting enter. C: Windows assembly GACMSIL This will allow you to interact with all the files in the GAC as a normal folder.
Ok awesome thanks. He does have an uninstall option in that folder, didn't realize it would be that simple. So is it reversible just as easily? He has already copied the target DLLs to another folder. After uninstalling from the GAC, if we encounter some unforeseen issue can he just drag/drop them back to the GAC then right-click to install them?
No other steps required? Or would we need to run/rerun the Oracle ODP.NET installer? He is nervous about removing them from the production server without a definite recovery plan, which is perfectly reasonable. – Oct 27 '15 at 19:12. If you have Visual Studio at all, anywhere, you can port gacutil onto the server from its location. On my computer, with Visual Studio 2015, it's at C: Program Files (x86) Microsoft SDKs Windows v10.0A bin NETFX 4.6.1 Tools. On another question here on SO, it said you can also just install the Microsoft SDK separately (and it should install there, I assume, or in a different ' v' folder if it's a different version).
If you know it should be on a particular computer, you can do where gacutil to find it, then copy it, and the gacutil.exe.config file that should be next to it, to the server. ( ) Sometimes you get an error when you try to remove Oracle.ManagedDataAccess from the GAC using gacutil, that Windows Installer is a dependency ( ). If so, you have to also remove it from HKEYCURRENTUSER Software Microsoft Installer Assemblies Global & HKEYLOCALMACHINE Software Classes Installer Assemblies Global, then do the gacutil -u command.
I had this issue and I didn't have to go to the HKCU location-but it was at the HKLM location. After removing it from there, I uninstalled & re-installed the Oracle Developer Tools for Visual Studio, just to be safe (I saw it said to do so here: ), then my project finally worked.
Note: When I tried going to C: Windows assembly GACMSIL, I never even saw Oracle.ManagedDataAccess, so I could not remove it that way. I'm posting this to help anyone that might run into stubborn DLLs that have the same issue.
How to Install an Assembly in the GAC. 2 minutes to read. Contributors. In this article Manually install and uninstall a BizTalk assembly in the global assembly cache (GAC) using the Gacutil tool included with Visual Studio.
Using Visual Studio, you can have BizTalk assemblies automatically installed in the GAC when they are deployed from Visual Studio. Set this option in the Deployment Properties of the BizTalk project; see. You cannot, use this method to install non-BizTalk.NET assemblies in the GAC; you must install them manually, as described in this topic. Note You can also specify deployment options for assemblies after they are deployed into a BizTalk application by using the BizTalk Server Administration console.
Prerequisites Sign in with an account that has Write permission to the GAC. The Administrators account on the local computer has this permission. Install using gacutil. Copy the BizTalk assembly to your local computer. Open Developer Command Prompt for Visual Studio as administrator.
Type the following: gacutil /i pathtoassemblyfile /f For example, type: gacutil /i c: temp filename.dll /f The /f option overwrites any existing assembly that has the same assembly name. For more info on the gacutil commands and options, type gacutil /?
Uninstall using gacutil Uninstalling an assembly from the global assembly cache (GAC) is necessary to completely undeploy an application. You can automate this process. Before deploying the application into a production environment, write a pre-processing script that uninstalls the assembly from the GAC automatically when the application is uninstalled. You can also use a script to remove additional files and settings. Using the Windows interface. Open to%systemdrive% Windows Assembly.
Right-click each assembly file included in your application, select Uninstall, and then select Yes to confirm. Using the command line. Open Developer Command Prompt for Visual Studio as administrator. Type the following: gacutil /u For example, type: gacutil /u 'hello,Version=1.0.0.0, Culture=neutral, PublicKeyToken=ABCDEF' See Also.