 |
BOOK: ASP.NET Website Programming Problem-Design-Solution  | This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869 |
|
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|
|

April 10th, 2004, 09:25 PM
|
|
Registered User
|
|
Join Date: Feb 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Cryptographic failure
I am trying to install the downloaded code for this book. And, I am new to .NET.
I get the error message about cryptographic failure as below (and tons of others like it) when I try to build the solution in Visual Studio .NET 2003. 106 errors in all. Sounds familiar?
The code is installed under C:\Wrox. I tried building with the original key in the download, as well as a newly generated key using SN -k. Both the keys give the same set of errors.
------------
Cryptographic failure while signing assembly 'C:\Wrox\ThePhile\Modules\Accounts\ACCOUNTSCONFIGU RATION\obj\Debug\Wrox.WebModules.Accounts.Configur ation.dll' -- 'Error reading key file '\Wrox\Keys\ThePhile.snk' -- The system cannot find the path specified. '
------------
|
|

April 12th, 2004, 09:24 AM
|
|
Friend of Wrox
|
|
Join Date: May 2003
Posts: 229
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
quote:Originally posted by u-reddy
------------
Cryptographic failure while signing assembly 'C:\Wrox\ThePhile\Modules\Accounts\ACCOUNTSCONFIGU RATION\obj\Debug\Wrox.WebModules.Accounts.Configur ation.dll' -- 'Error reading key file '\Wrox\Keys\ThePhile.snk' -- The system cannot find the path specified. '
------------
|
As reported by the system, please check that your Key file exist in the following path
"c:\Wrox\Keys\"
Charul Shukla
|
|

April 12th, 2004, 01:38 PM
|
|
Registered User
|
|
Join Date: Feb 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Indeed, the key file exists as required, C:\Wrox\Keys\ThePhile.snk.
|
|

April 13th, 2004, 12:12 PM
|
|
Authorized User
|
|
Join Date: Apr 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Check that in AssemblyInfo.cs you got the right path like
[assembly: AssemblyKeyFile(@"\Wrox\Keys\ThePhile.snk")]
-Ted
-Ted
|
|

April 17th, 2004, 11:18 AM
|
|
Registered User
|
|
Join Date: Feb 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Indeed, no problem with AssemblyInfo.cs. The line is unchanged from the downloaded version.
Uday Reddy
|
|

April 26th, 2004, 03:03 AM
|
|
Registered User
|
|
Join Date: Feb 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
After trying various things, I have discovered that the application is looking for the key file at \Wrox\Keys\ThePhile.SNK on the same drive as the installation of Visual Studio. So, what the book says on page 33, viz., that the file should be on "the same physical drive as the project" appears to be false.
What is happening makes sense. If the drive letter is not specified, Visual Studio would look for it on the "current drive," whatever it might be when it got started. So, the book's idea that it will do the right thing if you just omit the drive letter is a bit careless, if you ask me.
Uday Reddy
|
|

November 15th, 2004, 03:51 PM
|
|
Registered User
|
|
Join Date: Nov 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Well just to give my thought on this is, that for me, it did want the folder to be on the drive of the project, and not on the drive of the installation.
I have 3 partitions, Operating system, application and data, and it did need to be on my data drive not my application drive where VS.net was installed.
Sian Mace
|
|

November 16th, 2004, 09:48 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
You should NOT use the Wrox keys that come with the source download! It defeats the purpose of a private key if you use somebody else's private key.
There is no requirement to use strongly named assemblies with this project, so you can just comment out those entries in every AssemblyInfo file.
Eric
|
|
 |