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

StackOverflow https://stackoverflow.com/questions/3393981

  •  08-10-2020
  •  | 
  •  

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

?

有帮助吗?

解决方案

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

其他提示

Silly reason, really, but it took me what felt like hours to fix and is not really something you want to have to deal with when you’re in the middle of trying to figure out a complex problem.

To add the assembly to the GAC you need to specify the .dll extension, but when trying to query it or unregister it you must NOT specify the .dll extension.

Running

gacutil –l  myAssembly

will return

Number of items = 1
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top