Sunday, May 24, 2015

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).

.Net Framework 2.0 SDK

  • Twitter
  • Facebook
  • Delicious
  • Bebo
  • StumbleUpon
  • Digg
  • Blogger Post
  • WordPress
  • Share/Bookmark

Related posts:

  1. Component to Connect to Active Directory with Sharepoint WSS
  2. Alphabet Selector Web Server Control
  3. Adding a Featured Video Section to a Wordpress Homepage


7 Responses to “Failure adding assembly to the cache: Unknown Error – GACUtil”
  1. Erik Burger says:


    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!


  2. admin says:

    Hi Erik, where you able to successfully solve your issue?


  3. derekpm says:

    Rather interesting. Has few times re-read for this purpose to remember. Thanks for interesting article. Waiting for trackback

  4. Peter Kent says:

    Thanks for the tip and the link. Worked like a charm.

  5. Roland Hall says:

    That was a fix for me also. It shouldn’t be a secret. We shouldn’t have to wade through nonsense, unconventional practices and seek out a few who know the work arounds, to get this stuff to work. When I look this up in an article at MSFT, I shouldn’t need to look any further. Whoever is over documenttation at MSFT needs to be fired!

  6. Madhura says:

    I am facing the same above mentioned issue. Failure adding assemsembly manifest. HOw you have solved it?


  7. Kushel says:

    Hi Madhura,

    Install the .net framework SDK for the version of .Net you are using, so i’m guessing .Net framework 4 SDK (software development kit). Have a look at this:

    Hope this helps.

Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!

Communicate Through Technology is Digg proof thanks to caching by WP Super Cache!

Communicate Through Technology is Digg proof thanks to caching by WP Super Cache!