Cannot Install Signed Assembly Into Windows 7 GAC RRS feed

  • Question

  • I cannot figure out how to install a .NET 4 assembly into the Win 7 GAC. Here is what I have tried so far:

    1. Create a VS2010 Class Library Project with basic references to system assemblies (system.dll, system.core.dll, system.xml.dll, system.xml.linq.dll). Target Framework is '.NET Framework 4'.
    2. Add a single class with a single method.
    3. Create a SNK in the project and sign (not delay sign) the assembly.
    4. Create a bat file with the following script:
      "%ProgramFiles%\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\gacutil.exe" /i "<full file path to assembly dll>"
    5. Run the bat file as Administrator
    6. Console output says :
      Microsoft (R) .NET Global Assembly Cache Utility.  Version 4.0.30319.1
      Copyright (c) Microsoft Corporation.  All rights reserved.
      Assembly successfully added to the cache
    7. I check the GAC at %windir%\assembly and cannot find my assembly, nor can I find it using the .NET 2.0 Config MMC Snap-In.
    8. Same results on a co-workers Win7x64 system.
    9. Yes, I have Admin rights to the GAC.

    What am I missing?



    Thursday, May 26, 2011 6:53 PM


All replies