can a strong name unsigned dll consume a signed dll

Last post 07-27-2009 4:43 AM by SSA. 2 replies.

Sort Posts:

  • can a strong name unsigned dll consume a signed dll

    07-27-2009, 1:29 AM
    • Member
      point Member
    • LeonJL
    • Member since 07-27-2009, 4:48 AM
    • Posts 1

    I have two managed dlls: A.dll and B.dll. A.dll consumes B.dll.

    If A.dll is not strong name signed and B.dll is strong name signed (or delay signed), when I run my program after build, it threw "B.dll not found, strong name validation failed".

    Can an unsigned dll consume a signed or delay signed dll?

    Thanks

    Leon

     

     

     

  • Re: can a strong name unsigned dll consume a signed dll

    07-27-2009, 4:11 AM
    Answer

    Not possible.

  • Only loads assemblies that are in the GAC - If your assembly loads or references assemblies that are not in the GAC it should not be installed to the GAC.
  •  http://www.mono-project.com/Assemblies_and_the_GAC

    ~ Remember To Mark The Post(s) That Helped You As The ANSWER ~
    Work Hard For A Better Tomorrow,
    Live Life As If There Is No Tomorrow.
  • Re: can a strong name unsigned dll consume a signed dll

    07-27-2009, 4:43 AM
    Answer
    • Contributor
      2,494 point Contributor
    • SSA
    • Member since 05-07-2009, 3:16 PM
    • Amsterdam, The Nederlands
    • Posts 411

    You can cosume, but the problem is as you said B.dll is delay signed it means you can not run it or debug it. runtime will show error verification failed. To get rid of this during development or until you finally sign the dll:

    use Sn.exe -Vr to skip verifaction during development.

    But a strong name assembly can only reference strong named assembly to avoid DLL conflicts.

    You can also refer this MSDN FAQ:

    http://msdn.microsoft.com/en-us/library/bb981440.aspx#_How_do_I_47

Page 1 of 1 (3 items)