L
Larry Smith
Hi there,
I'm trying to publish my web site from VS by right-clicking the project and
selecting "Publish Web Site". On the dialog that appears, I then check
"Enable strong naming on precompiled assemblies" and enter the name of my
".pfx" file in the "Key file location" field. The following error results
however when I proceed with publishing:
"Error 5 Cryptographic failure while signing assembly 'c:\Documents and
Settings\Developer1\Local Settings\Temp\Temporary ASP.NET
Files\publish\8cf0e763\82cfb5f8\App_Web_boczeoov.dll' -- 'Bad Version of
provider. ' "
Note that my ".pfx" file was issued by a well-known certificate authority
and works everywhere else I use it in VS (or otherwise). I tried using a
".snk" file above instead (after converting my ".pfx" to a ".snk" file using
"sn.exe") but that results in:
"Error 5 Cryptographic failure while signing assembly 'c:\Documents and
Settings\Developer1\Local Settings\Temp\Temporary ASP.NET
Files\publish\8cf0e763\82cfb5f8\App_Web_5cvwn6lo.dll' -- 'Key file
'c:\MyProject.snk' is missing the private key needed for signing' "
I also tried doing all this from the command line outside of VS (using
"aspnet_compiler.exe") but the problem persists. Can anyone shed any light
as I've already Googled extensively with no luck. Thanks.
I'm trying to publish my web site from VS by right-clicking the project and
selecting "Publish Web Site". On the dialog that appears, I then check
"Enable strong naming on precompiled assemblies" and enter the name of my
".pfx" file in the "Key file location" field. The following error results
however when I proceed with publishing:
"Error 5 Cryptographic failure while signing assembly 'c:\Documents and
Settings\Developer1\Local Settings\Temp\Temporary ASP.NET
Files\publish\8cf0e763\82cfb5f8\App_Web_boczeoov.dll' -- 'Bad Version of
provider. ' "
Note that my ".pfx" file was issued by a well-known certificate authority
and works everywhere else I use it in VS (or otherwise). I tried using a
".snk" file above instead (after converting my ".pfx" to a ".snk" file using
"sn.exe") but that results in:
"Error 5 Cryptographic failure while signing assembly 'c:\Documents and
Settings\Developer1\Local Settings\Temp\Temporary ASP.NET
Files\publish\8cf0e763\82cfb5f8\App_Web_5cvwn6lo.dll' -- 'Key file
'c:\MyProject.snk' is missing the private key needed for signing' "
I also tried doing all this from the command line outside of VS (using
"aspnet_compiler.exe") but the problem persists. Can anyone shed any light
as I've already Googled extensively with no luck. Thanks.