Monday, February 6, 2012

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

Comments

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

    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

  2. admin says:

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

    Kushel.

  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.

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!