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 March 10th, 2005, 11:56 PM
Registered User
 
Join Date: Mar 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Syntax-Error
Default error when creating SNK file

When attempting to make an SNK file for my personal website, as was done in the book, I open the .net command prompt, and type:

Code:
SN -K TheSyntax.SNK
 as the book instructs. The file is not created and I get the following error, "Invalid option K". Thanks for any help.

::Someone dropped ignorance in the gene pool.::
 
Old March 11th, 2005, 08:39 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

use a lowercase "k".

And you really don't need to strongname anything in this project. That's only really needed to put assemblies in the GAC.

It can also be a good idea when distributing assemblies to other companies.

When .NET first came out the ability to sign assemblies was new and innovative, so people used it a lot. However, the tendency today is to use it only when you can get an advantage from it.

Eric
 
Old March 11th, 2005, 06:26 PM
Registered User
 
Join Date: Mar 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Syntax-Error
Default

I was not familiar with SNK files before I read this book so it makes since that they aren't used much anymore. Thanks for your help Eric!

::Someone dropped ignorance in the gene pool.::
 
Old March 17th, 2005, 09:13 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I didn't mean they're not used much, but rather they're only used when they offer something beneficial.

You do need .snk files and signing of assemblies to install them in the GAC. The GAC is a fast mechanism for locating assemblies at runtime, and it supports side-by-side versioning. This is an excllent way to deploy business objects that might change often (where you might want several versions online), or assemblies that are shared between different applications.

The authors of this book envisioned a much bigger system, so they planned for that up front. I certainly don't fault them for planning on having future growth. But most people don't use ThePhile's modules in separate applications, so the GAC and .snk files aren't really needed the way most people will use this application.

It's also wise to sign any assemblies that might be distributed outside your company.

Eric





Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating Excel File vikas67k C# 6 March 4th, 2010 05:02 AM
Creating XSLT file (C#) maliniarulkumar General .NET 3 April 5th, 2007 10:08 AM
Creating help file Amitava Deewan Beginning VB 6 0 February 7th, 2006 10:47 AM
snk file skitto01 BOOK: ASP.NET Website Programming Problem-Design-Solution 1 December 30th, 2004 04:53 PM
Can't build: snk file not foud saeta57 BOOK: ASP.NET Website Programming Problem-Design-Solution 2 July 4th, 2004 05:21 AM





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