Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GACUtil "Assembly successfully added to the cache" but "Number of items = 0"

Tags:

gac

gacutil

Why, when I run:

gacutil –i  myAssembly.dll

do I get:

Assembly successfully added to the cache

But then when I run:

gacutil –l  myAssembly.dll

I get

Number of items = 0

?

like image 241
Michael Rodrigues Avatar asked Aug 03 '10 06:08

Michael Rodrigues


People also ask

How do I clear GAC global assembly cache?

There are two ways to remove an assembly from the global assembly cache (GAC): By using the Global Assembly Cache tool (Gacutil.exe). You can use this option to uninstall assemblies that you've placed in the GAC during development and testing. By using Windows Installer.

How do I check my global assembly cache?

Starting with the . NET Framework 4, the default location for the Global Assembly Cache is %windir%\Microsoft.NET\assembly. In earlier versions of the . NET Framework, the default location is %windir%\assembly.

How do I know if assembly is installed in GAC?

To get information on the the assembly attributes (Version, Culture, PublicKeyToken), run the gacutil /l command which will return a list of all the assemblies in the GAC. You can also see the information associated with a particular assembly using the -l parameter.


1 Answers

try with

gacutil –l  myAssembly

donot add .dll at last.So if the dll is registered in GAC it will display

Number of items = 1

http://msdn.microsoft.com/en-us/library/ex0ss12c(VS.80).aspx

like image 119
anishMarokey Avatar answered Sep 28 '22 02:09

anishMarokey