Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Dotfuscator and GAC

Dotfuscator and GAC

Scheduled Pinned Locked Moved C#
helpdotnettutorialquestion
3 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Ranjan Banerji
    wrote on last edited by
    #1

    I have an assembly that is strongly named and is added to the GAC. All works well. however, if I obfuscate the assmebly using Dotfuscator I get the following error: Failure adding assembly to the cache: Strong name signature could not be verified. Was the assembly built delay-signed? Any ideas on how to fix this?

    R M 2 Replies Last reply
    0
    • R Ranjan Banerji

      I have an assembly that is strongly named and is added to the GAC. All works well. however, if I obfuscate the assmebly using Dotfuscator I get the following error: Failure adding assembly to the cache: Strong name signature could not be verified. Was the assembly built delay-signed? Any ideas on how to fix this?

      R Offline
      R Offline
      Ranjan Banerji
      wrote on last edited by
      #2

      nevermind I found it http://www.kessler.de/prd/preemptive/dotfuscator_userguide.pdf[^] Apparently I seem to find soultions after I post a question :-)

      1 Reply Last reply
      0
      • R Ranjan Banerji

        I have an assembly that is strongly named and is added to the GAC. All works well. however, if I obfuscate the assmebly using Dotfuscator I get the following error: Failure adding assembly to the cache: Strong name signature could not be verified. Was the assembly built delay-signed? Any ideas on how to fix this?

        M Offline
        M Offline
        Mike Dimmick
        wrote on last edited by
        #3

        You need to obfuscate it before adding the strong name. The strong name includes a cryptographic hash of the contents of the DLL, which is verified on adding to the GAC, and obfuscating it (obviously) changes the contents. Use sn.exe with the -R switch to strong-name-sign a DLL. You may need to specify /delaysign+ to the compiler for sn.exe to work. I found I had to do this when rebasing a Primary Interop Assembly generated with tlbimp, since tlbimp does not allow the base address to be specified.

        Stability. What an interesting concept. -- Chris Maunder

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups