Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0
This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 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 May 24th, 2007, 08:43 AM
Authorized User
 
Join Date: Apr 2007
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Error happens during redirect to PayPal

I¡¦d got the Error message below:
Something wrong at line 94, ¡§order¡¨ isn¡¦t an instance.
Is there anyone had the same question?

--------------------------------------------------------------------------------

Object reference not set to an instance of an object.
¡K¡K¡K¡K¡K¡K¡K¡K¡K¡K¡K¡K¡K¡K¡K¡K¡ K¡K¡K¡K..

 System.NullReferenceException: Object reference not set to an instance of an object.


 94: Order order = Order.GetOrderByID(orderID);
 95:
 96: this.Response.Redirect(order.GetPayPalPaymentUrl() ,false);
 97: }
 98: else


Source Code: d:\AspLab\TBH\ShoppingCart.aspx.cs line: 96


[NullReferenceException: Object reference not set to an instance of an object.]
   MB.TheEzOutdoor.UI.ShoppingCart.wizSubmitOrder_Fin ishButtonClick(Object sender, WizardNavigationEventArgs e) in d:\AspLab\TBH\ShoppingCart.aspx.cs:96
   System.Web.UI.WebControls.Wizard.OnFinishButtonCli ck(WizardNavigationEventArgs e) +105
   System.Web.UI.WebControls.Wizard.OnBubbleEvent(Obj ect source, EventArgs e) +693
   System.Web.UI.WebControls.WizardChildTable.OnBubbl eEvent(Object source, EventArgs args) +17
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +35
   System.Web.UI.WebControls.LinkButton.OnCommand(Com mandEventArgs e) +115
   System.Web.UI.WebControls.LinkButton.RaisePostBack Event(String eventArgument) +163
   System.Web.UI.WebControls.LinkButton.System.Web.UI .IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler sourceControl, String eventArgument) +11
   System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +174
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102


 
Old May 24th, 2007, 10:11 PM
Authorized User
 
Join Date: Apr 2007
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'd found the error, I did not type data to the OrderStatues table.
Order.GetOrderByID(orderID) will return Null.
"WaitingForPayment", "Confirmed" , "Verified" used in the code.
It's easy to Change them to Chinese ?







Similar Threads
Thread Thread Starter Forum Replies Last Post
paypal and asp ocabrera70 Classic ASP Professional 3 September 25th, 2014 06:30 AM
PayPal Integration takwirira ASP.NET 2.0 Basics 0 May 12th, 2008 05:44 AM
PayPal - IPN Shabequl PHP How-To 1 September 26th, 2007 05:15 PM
Error: Redirect URI cannot contain newline charact ninel General .NET 0 October 30th, 2006 02:11 PM
paypal ? anshul Pro PHP 1 November 24th, 2004 01:19 AM





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