Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950
This is the forum to discuss the Wrox book ASP.NET MVC Website Programming Problem Design Solution by Nicholas Berardi, Al Katawazi, and Marco Bellinaso; ISBN: 9780470410950
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950 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
  #1 (permalink)  
Old October 30th, 2009, 08:42 AM
Registered User
 
Join Date: Oct 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Bug on demo site

The live demo site at www.thebeerhouseexample.com causes a server error when you try to make a forum post. If I ignore the post and reload the page, I can see the post. The one I made is "Which Becks is Best?". Please advise. Thanks.

>>>

Server Error in '/' Application.
Specified cast is not valid.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidCastException: Specified cast is not valid.

Source Error:

Line 4:
Line 5: <% Html.RenderPartial("~/Views/Shared/Message.ascx"); %>
Line 6: <% var userVote = (int)ViewData["userVote"]; %>
Line 7:
Line 8: <div id="posts">


Source File: c:\Inetpub\wwwroot\TheBeerHouseExample\Views\Forum \ViewPost.aspx Line: 6
  #2 (permalink)  
Old October 30th, 2009, 08:43 AM
nberardi's Avatar
Wrox Author
 
Join Date: Aug 2008
Location: Phoenixville, PA, USA
Posts: 102
Thanks: 1
Thanked 16 Times in 16 Posts
Send a message via AIM to nberardi
Default

I needs to be updated to the latest code on CodePlex.
__________________
Check out my blog at: http://www.coderjournal.com
  #3 (permalink)  
Old October 30th, 2009, 09:07 AM
Registered User
 
Join Date: Oct 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Wow, that was a quick reply, and from the author, thanks.
fyi, the sample code that I downloaded from the Wrox download site had the same problem. But I'll grab it now from Codeplex.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 4, demo.controls benjii82 BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 1 October 26th, 2009 03:20 PM
wrox web site demo yesil65 BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 1 October 2nd, 2008 01:06 PM
Access 2000 has many (demo) rows fizzerchris Access 3 April 8th, 2008 11:59 AM
Bug or no to bug learning C using VS.Net to compil tesh All Other Wrox Books 0 February 14th, 2007 01:06 PM
Chapter 8, Meno Demo sjar BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 4 June 20th, 2006 10:01 AM





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