Strong naming problem

Last post 06-30-2008 1:14 PM by mont. 2 replies.

Sort Posts:

  • Strong naming problem

    06-25-2008, 12:13 PM
    • Loading...
    • mont
    • Joined on 04-26-2008, 4:57 PM
    • Posts 30
    I am trying to get strong naming working with my web deployment project and I'm having difficulties.

    When I build the project I get:

    Cryptographic failure while signing assembly 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\digitalwebviewer\3800da06\dd934212\App_Code.dll' -- 'Bad Version of provider. '

    For the key file I am providing the same .pfx file that I use for our WinForms apps, where it works fine.

    I get the same error if I try to Publish the web app with strong naming.

    I've considered that .pfx files might not be supported by ASP.NET apps but I can't figure out how to get from a .pfx to a .snk file.

    Does anyone know how to make this work?

    Thanks,
    -Mont
  • Re: Strong naming problem

    06-30-2008, 4:05 AM

    Hi,

    You can create PFX file using SN tool.

    It is easy to create it using Visual Studio 2005 for your web application. For more information, see http://blogs.msdn.com/shawnfa/archive/2006/02/14/531921.aspx or http://www.securityguidanceshare.com/wiki/ASP.NET_2.0_Security_Questions_and_Answers_-_Strong_Naming_and_Signing

     

    I hope this helps.

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
  • Re: Strong naming problem

    06-30-2008, 1:14 PM
    • Loading...
    • mont
    • Joined on 04-26-2008, 4:57 PM
    • Posts 30
    Thanks for the pointers.

    Unfortunately my problem isn't generating a .pfx it is creating full (public and private key) .snk from a .pfx and the fact that VS08 appears to have a bug preventing the use of .pfx files for signing.

    Perhaps SP1 will fix the issue.

    Thanks,
    -Mont
Page 1 of 1 (3 items)
Microsoft Communities
Page view counter