|
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
| This is the forum to discuss the Wrox book Beginning ASP.NET 3.5: In C# and VB by Imar Spaanjaars; ISBN: 9780470187593 |
|
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 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
|
|
|
|
January 29th, 2009, 06:29 PM
|
Registered User
|
|
Join Date: May 2008
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
Chapter 8 pps 272-273
Since posting this originally I finally solved the problem on my own. How? Simply reading further in Imar's book and using his very helpful source code feature he provides for downloads.
I did the Try It Out on pages 272-273. When I finished step 5, to view the file Default.aspx in the Browser I get this error message:
Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0246: The type or namespace name 'Direction' could not be found (are you missing a using directive or an assembly reference?)
Source Error:
Line 32: }Line 33: Line 34: public Direction DisplayDirection { get; set; }Line 35: Line 36: public string NavigateUrl
Source File: c:\BegASPNET\Site\Controls\Banner.ascx.cs Line: 34
I've looked for a resolution to this without success. Can anyone here tell the the cause and the remedy for this error?
Last edited by Featheriver; January 31st, 2009 at 02:30 PM..
Reason: Problem solved
|
January 31st, 2009, 03:29 PM
|
|
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi there,
Can you explain what you did to solve this? The Direction enum is not introduced (nor used, as far as I know) until page 279, so I am a bit surprised to see you're getting an error on that type on page 272....
Imar
|
January 31st, 2009, 04:29 PM
|
Registered User
|
|
Join Date: May 2008
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
How I solved the problem
Well, Imar, when I ran into the error I came onto this forum and ran searches trying to find some discussion related to the error I was getting and found nothing. I also ran some searches on Google and found some discussions on MSDN. They were of no help because I am a neophyte in all this and generally unable to understand what those sources were talking about.
So, I reopened your book and continued on with Chapter 8. I also obtained the AboutUs, Banner Control, and any other pertinent pages from the source folder downloaded from the Wrox site. I then compared the code you had written in the book trying to match up what was contained in the files on my computer. When I completed going through Chapter 8 I viewed it all in the browser and it worked.
When I reached page 279 it did appear to me that it touched on the error I had been getting. I wondered why there had been no caveat that I might get such an error when I completed step 5 on page 273 and ran the Default.aspx page in the browser. You had been very diligent in doing so in previous chapters.
So, I confess I have no technological reason I can provide you as to why I encountered the error. Wish I did.
While I'm at it here, I would like to commend you on the thoroughness of your book. At places along the way it is over my head. But my background isn't in this realm at all. I'm a 76 year old retired lawyer. I became interested in trying to learn about ASP.NET while building web sites using Microsoft Expression Web 2. I wanted to try to elevate myself into ASP.NET 3.5 to use a more interactive method of handling web sites. It is fascinating. It also keeps me out of bars, poolhalls and casinos here in Nevada.
You might be interested also to know that I had bought three books on ASP.NET 3.5 before I bought yours. Those books were of the calibre of "ASP.NET for Dummies," and one from Microsoft Press entitled "Visual Web Developer 2008--Step by Step."
By far your's has been the most helpful. I have become a fan of the Wrox books and of this site.
|
January 31st, 2009, 05:00 PM
|
|
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi Featheriver,
Quote:
I also obtained the AboutUs, Banner Control, and any other pertinent pages from the source folder downloaded from the Wrox site.
|
Maybe that explains it? The banner control contains the final code for the chapter and assumes the Direction type has been created. if you copy the banner from the download, but don't include the Direction enum, you'll get the error you posted earlier.
Quote:
While I'm at it here, I would like to commend you on the thoroughness of your book. At places along the way it is over my head. But my background isn't in this realm at all. I'm a 76 year old retired lawyer.
...
You might be interested also to know that I had bought three books on ASP.NET 3.5 before I bought yours. Those books were of the calibre of "ASP.NET for Dummies," and one from Microsoft Press entitled "Visual Web Developer 2008--Step by Step."
By far your's has been the most helpful. I have become a fan of the Wrox books and of this site.
|
Thank you; really good to hear that.....
Quote:
It is fascinating. It also keeps me out of bars, poolhalls and casinos here in Nevada.
|
Don't let my book take away all the fun..... ;-)
Imar
|
|
|