p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Register | FAQ | Members List | Calendar | 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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 3rd, 2009, 04:10 PM
Authorized User
Points: 68, Level: 1
Points: 68, Level: 1 Points: 68, Level: 1 Points: 68, Level: 1
Activity: 5%
Activity: 5% Activity: 5% Activity: 5%
 
Join Date: Mar 2009
Posts: 15
Thanks: 2
Thanked 0 Times in 0 Posts
Default DeleteShoppingCartItem error

I get the following error in firefox.

[ArgumentException]: The parameters dictionary contains a null entry for parameter 'productId' of non-nullable type 'System.Int32' for method 'System.Web.Mvc.ActionResult DeleteShoppingCartItem(Int32)' in 'TheBeerHouse.Controllers.CommerceController'. To make a parameter optional its type should be either a reference type or a Nullable type.

It seems like it's looking for a dictionary pair???
This is similar to DeleteShippingMethod, except that works.
I'm at my wit...................s end.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old November 3rd, 2009, 04:12 PM
nberardi's Avatar
Wrox Author
Points: 315, Level: 6
Points: 315, Level: 6 Points: 315, Level: 6 Points: 315, Level: 6
Activity: 12%
Activity: 12% Activity: 12% Activity: 12%
 
Join Date: Aug 2008
Location: Phoenixville, PA, USA
Posts: 70
Thanks: 1
Thanked 9 Times in 9 Posts
Send a message via AIM to nberardi
Default

The "productId" parameter isn't getting submitted to the action.
__________________
Check out my blog at: http://www.coderjournal.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
The Following User Says Thank You to nberardi For This Useful Post:
ralphbethke (November 3rd, 2009)
  #3 (permalink)  
Old November 3rd, 2009, 04:21 PM
Wrox Author
Points: 93, Level: 1
Points: 93, Level: 1 Points: 93, Level: 1 Points: 93, Level: 1
Activity: 2%
Activity: 2% Activity: 2% Activity: 2%
 
Join Date: Aug 2008
Location: Pittsford, NY, USA.
Posts: 19
Thanks: 1
Thanked 4 Times in 4 Posts
Send a message via AIM to Al_Katawazi
Default To get this working

Alright this is a bug in the code we released. If you use firebug net tab and look at the post being made you can see under the post tab it is passing id instead of productid. to fix this problem simply change the variable name in the deleteshoppingcartItem action method from productID to id. Or change the offending javascript file to pass productID instead of id. Up to you.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
The Following User Says Thank You to Al_Katawazi For This Useful Post:
ralphbethke (November 3rd, 2009)
  #4 (permalink)  
Old November 3rd, 2009, 04:58 PM
Authorized User
Points: 68, Level: 1
Points: 68, Level: 1 Points: 68, Level: 1 Points: 68, Level: 1
Activity: 5%
Activity: 5% Activity: 5% Activity: 5%
 
Join Date: Mar 2009
Posts: 15
Thanks: 2
Thanked 0 Times in 0 Posts
Default DeleteShoppingCart error

Thanks again guys,

I'm kind of embarrassed I didn't see that.

Not only are you guys good programmers...You're extremely prompt.

I stepped out for lunch and saw your reply when I returned.

Wish me luck...I'm getting ready to try out PayPal.

You the men!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Remote Connection Error: Named Pipes Provider error hbansal ASP.NET 2.0 Basics 5 April 12th, 2009 10:51 AM
Insert Query Error & Run-Time Error 3022 DavidWE Access 1 July 31st, 2008 12:17 PM
Ch 4: Parse error: syntax error, unexpected T_SL hanizar77 BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 June 23rd, 2008 10:17 PM
[Resolved] Error calling a sp - parameter error snufse .NET Framework 2.0 2 February 12th, 2008 04:46 PM
Phile Page error, visual studio error reps BOOK: ASP.NET Website Programming Problem-Design-Solution 0 September 27th, 2003 11:11 AM



All times are GMT -4. The time now is 07:48 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc