Senthil.P

All,

I tried to unistall the Assembly from GAC .. I got the following Error.


C:\WORKSPACE\200928\ALGO\Workspace\FileUpdater\bin\Debug>cd\

C:\>cd C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Bin\

C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Bin>gacutil /U Test

Microsoft (R) .NET Global Assembly Cache Utility. Version 1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.

No assemblies found that match: SenDll

Number of items uninstalled = 0
Number of failures = 0

Note : I used the following cmd to register :

C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Bin>gacutil /i c:\Test.dll

I see the file in GAC as Test

Please advise me...

Thanks in Advance...
senthil



Re: Common Language Runtime how to Un Register the DLL from GAC -- Error

Martin Xie - MSFT

Hi Senthil,

I have run the register and uninstall command of gacutil that you¡¯ve described, but I didn't encounter such problems on my machine.

I find one discrepancy in your description. You typed ¡°gacutil /U Test¡±, it¡¯s impossible for gacutil to output: ¡± No assemblies found that match: SenDll¡±, the output should be ¡± No assemblies found that match: Test¡±.

Please recheck it.






Re: Common Language Runtime how to Un Register the DLL from GAC -- Error

Bellingham Coder

Can you uninstall your assembly via windows explorer

Open "C:\windows\Assembly" in windows Explorer, select your Test assembly entry, choose "Uninstall" from the context menu. Any luck that way





Re: Common Language Runtime how to Un Register the DLL from GAC -- Error

Bellingham Coder

What output do you see when running the following command:

gacutil /l Test

It should list the assembly you installed in the GAC, but its likely not to list anything if your uninstall command doesn't work.

Via a command prompt you could dig around in the GAC directory structure. Depending on how you compiled your assembly it would be in one or more of the following directories:

C:\Windows\Assembly\GAC_MSIL\Test\<Version>_<PublicKey>\

C:\Windows\Assembly\GAC\Test\<Version>_<PublicKey>\

C:\Windows\Assembly\GAC_32\Test\<Version>_<PublicKey>\

What do you get from typing the following command:

"c:\windows\assembly>dir /s Test.dll"





Re: Common Language Runtime how to Un Register the DLL from GAC -- Error

Senthil.P

thanks .. I got the same error like you said " No assemblies found that match: Test¡±.



Re: Common Language Runtime how to Un Register the DLL from GAC -- Error

Senthil.P

Thanks.. I can able to do that.. But my requierment is to do in Programatically... Do ypu have any idea on that



Re: Common Language Runtime how to Un Register the DLL from GAC -- Error

Martin Xie - MSFT

Hi Senthil,

If you want to operate on the GAC programmatically, you can use the fusion API provided in FUSION.dll.

Here are some references:

Global Assembly Cache (GAC) APIs Are Not Documented in the .NET Framework Software Development Kit (SDK) Documentation:

http://support.microsoft.com/default.aspx scid=kb;en-us;317540

GAC API Interface:

http://www.codeproject.com/csharp/GacApi.asp

This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

Thank you!Smile