Wrox Programmer Forums
|
BOOK: Professional ASP.NET MVC 2
This is the forum to discuss the Wrox book Professional ASP.NET MVC 2 by Jon Galloway, Scott Hanselman, Phil Haack, Scott Guthrie, Rob Conery; ISBN: Professional ASP.NET MVC 2
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET MVC 2 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 June 22nd, 2010, 12:31 PM
Registered User
 
Join Date: Feb 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Error on page 30 in DinnerRepository

I couldn't find any errata link on the book page, so I am assuming we post all errata here?

Anyway, there is an error on page 30 in the DinnerRepository class, the Delete(Dinner dinner) method:
foreach(var rsvp in dinner.RSVPs){
entities.RSVPs.DeleteObject(dinner.RSVPs)
}

This does not work, and throws a compliation error. The error is also repeated in the downloaded code. But, I found the correct code on the NerdDinner2.0 Codeplex download:

foreach(RSVP rsvp in dinner.RSVPs.ToList()){
entities.RSVPs.DeleteObject(rsvp)
}

Last edited by adimauro; June 22nd, 2010 at 12:36 PM.. Reason: Edited to correct page number. Should be page 30.
 
Old June 23rd, 2010, 02:41 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

I think you can submit errors to Wrox through this form: https://hub.wiley.com/community/support/wrox

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!

Last edited by jminatel; May 18th, 2016 at 03:37 PM.. Reason: new Wrox support URL https://hub.wiley.com/community/support/wrox
 
Old June 24th, 2010, 11:47 AM
Registered User
 
Join Date: Feb 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Not officially released?

It seems that according to the Wrox site, this book is still listed as 'upcoming'. Somehow Amazon sent them out early? I think that is why there is no errata link yet. They even listed it with a June 28 release date, but I already received mine on June 21.

I guess I have to wait to 'officially' submit errata, but just a quick heads up. Besides the error on page 30, I have encountered a bunch more on pages 88-91, and they are repeated in the downloaded code. The only place I found the correct code was by downloading NerdDinner2.0 from the CodePlex site. So, I recommend that over the code on the Wrox site.
 
Old July 6th, 2010, 07:46 PM
Registered User
 
Join Date: Jul 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I've submitted the error through the errata submission form.
Thanks for the fix. It was driving me nuts.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Undefined session variables Ch.2 pg. 38-39 outtaMyBlood BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143 2 March 14th, 2009 02:19 PM
XML parsing: line 1, character 38, unable to switc prafullaborade XML 2 May 22nd, 2008 06:21 AM
Error page youyou_hym Dreamweaver (all versions) 1 June 2nd, 2005 03:59 PM
Phile Page error, visual studio error reps BOOK: ASP.NET Website Programming Problem-Design-Solution 0 September 27th, 2003 10:11 AM





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