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
?
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.
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With