How to remove .NET assembly DLLs from a GAC ​​server

I am trying to deploy a VS2013 project containing the Oracle ODP.NET library to IIS Windows 2008 and get the error message "Failed to load type" OracleInternal.Common.ConfigBaseClass "from the assembly" Oracle.ManagedDataAccess, Version = 4.121.2.0. "From what I found on the Internet, this is caused by a conflict between the ODP project and the server that has ODP in the GAC. Then the instructions should remove the ODP from the GAC. The GAC server has an Oracle DLL. We are 99% sure that the DLL files were in The GAC from a previous attempt to configure Oracle on this field some time ago, since no other projects on this server should use Oracle, so we should be safe to remove it from the GAC.

However, gacutil.exe is only available in Visual Studio, and we are not allowed to install Visual Studio on the server.

So, how do we remove the Oracle DLL from the GAC without having gacutil.exe on the server? Can we just remove them from the directory? Or do we need to copy gacutil.exe from my workstation to the server to do this? Or is there a different approach? (preferably not including registry changes)

Any advice is appreciated, thanks.

+4
source share
2 answers

You should be able to do this using the Windows interface as follows, if you have administrator rights.

  • Go to the GAC, which is located in the% systemdrive% \ Windows \ Assembly folder.

  • , , "", "",

DLL , GAC , enter.

C:\Windows\assembly\GAC_MSIL

GAC .

+4

Visual Studio , , gacutil . Visual Studio 2015 C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools. , SO, , Microsoft SDK ( , , v, ). , , where gacutil, , gacutil.exe.config, , . ( gacutil.exe?)

Oracle.ManagedDataAccess GAC gacutil, Windows ( GAC?). , HKEY_CURRENT_USER\Software\Microsoft\Installer\Assemblies\Gl‌​obal HKEY_LOCAL_MACHINE\Software\Classes\Installer\Assemblies\Glo‌​bal, gacutil -u. , HKCU, HKLM. Oracle Developer Tools Visual Studio, ( , : https://community.oracle.com/thread/3944905), , , .

. C:\Windows\assembly\GAC_MSIL, Oracle.ManagedDataAccess, . , , DLL, .

+1

Source: https://habr.com/ru/post/1613252/


All Articles