Wrox Programmer Forums
|
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
 
Old January 21st, 2004, 06:34 PM
Registered User
 
Join Date: Jan 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Is the code running on VS.NET 2003?

Hello,

I am new to .NET. I think I am having "KEY" problem here. In the AssemblyInfo.cs file in each individual project, I need to change the key path to absolute physical path of the SNK file to compile(I:\wrox\keys\ThePhile.snk for example). And those individual projects compile fine. But in project "ThePhile", I got "Cryptographic failure while signing assembly 'D:\Documents and Settings\administrator\VSWebCache\...\ThePhile\obj \Debug\ThePhile.dll' -- 'Error reading key file '\Wrox\Keys\ThePhile.snk' -- The system cannot find the path specified. '" error when I compiled. If my folder structure is: I:\wrox\ThePhile, how should I specify the path? The original code simply does not work, I have to change it to something.

Btw, my operating system and .NET framework was installed on 2 different physical hard drives.

Another question is: the book used .NET 1.0, I am having .NET 2003 installed, does it work on v1.1?

Thanks for any help.

 
Old January 22nd, 2004, 11:27 AM
Registered User
 
Join Date: Jan 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I figured it out..

 
Old August 11th, 2004, 03:45 PM
Authorized User
 
Join Date: Aug 2004
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to macupryk Send a message via Yahoo to macupryk
Default

Hello,

I am new to .NET. I think I am having "KEY" problem here. In the AssemblyInfo.cs file in each individual project, I need to change the key path to absolute physical path of the SNK file to compile(I:\wrox\keys\ThePhile.snk for example). And those individual projects compile fine. But in project "ThePhile", I got "Cryptographic failure while signing assembly 'D:\Documents and Settings\administrator\VSWebCache\...\ThePhile\obj \Debug\ThePhile.dll' -- 'Error reading key file '\Wrox\Keys\ThePhile.snk' -- The system cannot find the path specified. '" error when I compiled. If my folder structure is: I:\wrox\ThePhile, how should I specify the path? The original code simply does not work, I have to change it to something.

Btw, my operating system and .NET framework was installed on 2 different physical hard drives.

Another question is: the book used .NET 1.0, I am having .NET 2003 installed, does it work on v1.1?

Thanks for any help.


[/quote]

Knowledge is to be shared.
 
Old August 11th, 2004, 08:40 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I just comment-out the key signing lines in all of the AssemblyInfo lines:

//[assembly: AssemblyDelaySign(false)]
//[assembly: AssemblyKeyFile(@"c:\thephile\Keys\ThePhile.snk")]
//[assembly: AssemblyKeyName("")]

There's no reason to use strong-naming on this project - none of the assemblies are installed into the GAC. And if you do want to use a strong name for some reason, you surely don't want to use somebody else's key (ThePhile.snk).

You can convert this project for use in VS 2003 if you delete all of the .dll and .pdb files. Then you need to do a build. It will fail the first couple times. After each failure you need to refresh the references to point to the new .dll files you already built.

Eric





Similar Threads
Thread Thread Starter Forum Replies Last Post
Running 97 Access Database in 2003 etherz Access 9 May 14th, 2008 08:14 AM
Error while running javascript code in ASP.NET Pag fozia_izhar ASP.NET 1.0 and 1.1 Professional 2 December 20th, 2006 03:39 AM
Dowloaded code (VB.NET 2003) does not work kadesskade VB.NET 2002/2003 Basics 2 July 10th, 2006 12:49 AM
Running VS 2002 & 2003 sharing one instance of MSD kevin777 VS.NET 2002/2003 8 October 24th, 2004 11:43 PM
Unable to login running on win server 2003 kiekar BOOK: ASP.NET Website Programming Problem-Design-Solution 2 May 6th, 2004 09:28 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.