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 August 11th, 2006, 03:19 PM
Authorized User
 
Join Date: Jul 2006
Posts: 40
Thanks: 1
Thanked 0 Times in 0 Posts
Default Key files

Hi..
After I downloaded the code files.I have built the Project but I got 22 error messages(the same error with different file path) as the following:

Cryptographic failure while signing assembly 'C:\Documents and Settings\Administrator\VSWebCache\JAGUAR\ThePhile\ obj\Debug\ThePhile.dll' -- 'Error reading key file '\Wrox\Keys\ThePhile.snk' -- The system cannot find the path specified. '

In fact,I dont know what is the need for key files.I have deployed my website WebApplication without using them and it is working fine.

Could any one explain to me these issues and How Could I solve the error I mentioned above?

 
Old August 14th, 2006, 09:50 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Key files are part of the anti-tamper security features in .net. You can comment them out in all of the AssemblyInfo.cs files if you'd like. I did this myself. It's only required to use them if you need to put assemblies in the GAC.

Eric

 
Old August 14th, 2006, 03:52 PM
Authorized User
 
Join Date: Jul 2006
Posts: 40
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Thank you very much..After I have comment them out the 22 errors disappeared:) but when I run the application I get the error:

Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Requested registry access is not allowed.

Source Error:


Line 27: protected void LogEvent(string message, EventLogEntryType entryType)
Line 28: {
Line 29: if (!EventLog.SourceExists("ThePhile.COM"))
Line 30: {
Line 31: EventLog.CreateEventSource("ThePhile.COM", "Application");

Source File: d:\nabeel\mybooksfiles\wrox\wrox\thephile\philepag e.cs Line: 29

May you help me again to solve this problem?.


 
Old August 15th, 2006, 11:41 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This is covered in the readme in the code download.

Eric

 
Old August 16th, 2006, 02:12 PM
Authorized User
 
Join Date: Jul 2006
Posts: 40
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by englere
 This is covered in the readme in the code download.

Eric

I found the file and read it as you told me and every thing is working fine now..Thank you vary much:D






Similar Threads
Thread Thread Starter Forum Replies Last Post
Foreign key not updating with Primary key xavier1945 BOOK: Access 2003 VBA Programmer's Reference 2 July 4th, 2007 09:48 PM
Using key() and <xsl:key> freddy XSLT 2 January 18th, 2007 08:55 PM
<bean:message key="PNR.INPUT"/> key has null value warsha_14 Struts 1 November 13th, 2006 07:26 AM
TAB KEY working together KEY PRESS event thomaz C# 4 August 20th, 2006 02:47 PM
FOREIGN KEY and PRIMARY KEY Constraints junemo Oracle 10 June 15th, 2004 01:00 AM





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