Wrox Programmer Forums
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 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 July 11th, 2005, 05:52 PM
Registered User
 
Join Date: Jul 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Alphacentauri127
Default Error Message with Chapter 13

Hello all, my name is Thang. I'm a novice programmer. Currently I'm using the book Beginning ASP.NET 1.1 with Visual C# .NET 2003 (ISBN: 0-7645-5708-4)


Now the problem I'm having is in Chapter 13, page 487.

I know from reading the book that Ms. Chris Hart is responsible for this chapter but her email is not listed in the book so I couldn't contact her.

Description: After creating the necessary files for the "TryItOut" on page 482 I ran "Default.aspx" and got the following error message:

 Compiler Error Message: CS0246: The type or namespace name 'DataAccessCode' could not be found (are you missing a using directive or an assembly reference?)

Source Error:

Line 22: public Calendar EventCalendar;
Line 23: System.Collections.Hashtable DateList;
Line 24: public DataAccessCode Data = new DataAccessCode();
Line 25:
Line 26:


Source File: C:\BegASPNET11\Ch13\WroxUnited3\Default.aspx.cs
Line: 24

I have tried the "Errata" for this book here at Wrox.com, but there is nothing in it for chapter 13. I also tried consulting the following article:
http://support.microsoft.com/default.aspx?kbid=304656

but nothing is working. Any help from any of you great professionals would be very much appreciated.

Thank you.

Thang


 
Old July 12th, 2005, 07:54 PM
Registered User
 
Join Date: Jul 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Alphacentauri127
Default

hello? can anyone help me?

 
Old July 13th, 2005, 02:31 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

And *are* you missing "a using directive or an assembly reference?"?

Apparently, the code cannot find the class or the assembly that holds the class DataAccessCode. Has that been discussed in a previous chapter? Does a "find in files" bring anything up related to DataAccessCode??

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old July 22nd, 2005, 04:59 AM
Friend of Wrox
 
Join Date: May 2003
Posts: 229
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

Check for the following line in DataAccess.cs..

 public class DataAccessCode

and now use the same name in default.aspx.cs as below

public DataAccessCode Data = new DataAccessCode();

There is a mismatch in names in your case.

Charul Shukla





Similar Threads
Thread Thread Starter Forum Replies Last Post
LINQ Error ? Chapter 13 workidoo BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 3 July 22nd, 2008 09:37 AM
Chapter 13: Error in user.php pherank BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 July 4th, 2008 09:09 PM
Getting Array Error message with Begin PHP4 Ch 13 vaderj PHP Databases 4 April 17th, 2005 04:37 PM





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