Failure adding assembly to the cache: Unknown Error

Last post 02-16-2009 5:04 AM by clementratel. 3 replies.

Sort Posts:

  • Failure adding assembly to the cache: Unknown Error

    11-16-2005, 5:47 PM
    • Member
      25 point Member
    • kc_g_man
    • Member since 11-16-2005, 10:34 PM
    • Posts 5

    Any ideas on this error? Please see below
    thanks
    Gary

    I am trying to run the build.bat. My "PATH" user variable  is pointing to C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
    I copied the gacuitl application file and the gacuitl.exe XML configuration files from 
    C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
      
    C:\Cassini>build.bat
    ------------------------------------------------------------------------
    Compiling Cassini.dll ...
    ------------------------------------------------------------------------
    Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.42
    for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727
    Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.

    AssemblyInfo.cs(26,12): warning CS1699: Use command line option '/keyfile' or
            appropriate project settings instead of 'AssemblyKeyFile'
    Request.cs(669,21): warning CS0618:
            'System.IO.FileStream.FileStream(System.IntPtr, System.IO.FileAccess,
            bool)' is obsolete: 'This constructor has been deprecated.  Please use
            new FileStream(SafeFileHandle handle, FileAccess access) instead, and
            optionally make a new SafeFileHandle with ownsHandle=false if needed.
            http://go.microsoft.com/fwlink/?linkid=14202'
    ------------------------------------------------------------------------
    Installing Cassini.dll into Global Assembly Cache ...
    ------------------------------------------------------------------------

    Microsoft (R) .NET Global Assembly Cache Utility.  Version 1.1.4318.0
    Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.

    Failure adding assembly to the cache: Unknown Error
    ---------------
    Errors in build
    ---------------

  • Zip it! [:#] Re: Failure adding assembly to the cache: Unknown Error

    11-17-2005, 1:48 AM
    • Member
      25 point Member
    • kc_g_man
    • Member since 11-16-2005, 10:34 PM
    • Posts 5
    I went back and installed the Cassini files for Framework 2.0 and ran into the same error. I just loaded the Cassini.dll manually to cache and went on. I was able to bring up the server. We will see how it goes from there.

    kc_g_man
  • Re: Failure adding assembly to the cache: Unknown Error

    11-17-2005, 9:32 PM
    • Contributor
      4,570 point Contributor
    • danmor
    • Member since 11-04-2002, 9:48 PM
    • Bellevue, WA
    • Posts 910
    • AspNetTeam

    Each version of the .NET Framework has its own version of GACUTIL.exe which must match the Framework version.  And to keep things in line it should be the same version of the Framework used to compile the Cassini DLL.

    -Dan
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Failure adding assembly to the cache: Unknown Error

    02-16-2009, 5:04 AM
    • Member
      2 point Member
    • clementratel
    • Member since 02-16-2009, 4:57 AM
    • Posts 1

    Hi,

    I am trying to load a dll into the GAC with C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\gacutil.exe /i c:\mydll.dll
    I get the error Failure adding assembly to the cache: Unknown Error.
    I have 5 folders/versions of Microsoft.NET but I only have gacutil.exe in the v1.1.4322 folder with gacutil.exe v1.1.4318

    Why don't I have 5 gacutil.exe as you mentioned ?

    What can I check ?

    a+, =)
    -=Clement=-

    Configuration :
    Microsoft Windows XP 32 SP3 Pro

Page 1 of 1 (4 items)