Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.1
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old July 11th, 2005, 05:52 PM
Registered User
 
Join Date: Jul 2005
Location: , , .
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


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

hello? can anyone help me?

  #3 (permalink)  
Old July 13th, 2005, 02:31 AM
Imar's Avatar
Wrox Author
Points: 67,271, Level: 100
Points: 67,271, Level: 100 Points: 67,271, Level: 100 Points: 67,271, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,227
Thanks: 66
Thanked 1,413 Times in 1,393 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.
  #4 (permalink)  
Old July 22nd, 2005, 04:59 AM
Friend of Wrox
 
Join Date: May 2003
Location: Delhi, Delhi, India.
Posts: 230
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
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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



All times are GMT -4. The time now is 05:36 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.