Failure adding assembly to the cache: Unknown Error – GACUtil
August 26, 2008 by Kushel
Filed under Latest, Sharepoint WSS
GACUtil.exe /if
gives you: Failure adding assembly to the cache: Unknown Error
If you come across this error when attempting to add an assembly (such as a Sharepoint Web Part) to your Global Assembly Cache (GAC), one possibility could be that you are not using the GACUtil utility for the correct .Net Framework version you need (check the path to your GACUtil utility).
If the above is true, install the .Net Framework Software Development Kit (SDK) for the .Net Framework version you require, then use the GACUtil that comes with this.
(I was attempting to use GACUtil from my .Net Framework 1.14.. directory. There was no other GACUtil on my system. My default .Net Framework was v2.0 – downloaded Framework 2.0 sdk and bang, used the GACUtil that came with this successfully).
Related posts:

Hi,
I am getting the following error when I try to install Microsoft.SharePoint.dll to the GAC:
“Failure adding assembly to the cache: The module was expected to contain an assembly manifest.”
Could this be due to the same reason? I *am* using the v2.0 SDK :s
Thanks in advance for any comments/help!
Erik
Hi Erik, where you able to successfully solve your issue?
Kushel.
Rather interesting. Has few times re-read for this purpose to remember. Thanks for interesting article. Waiting for trackback
Thanks for the tip and the link. Worked like a charm.