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
|