Results 1 to 3 of 3

Thread: Checkout Error on checkoutshipping.aspx Page

  1. #1
    Join Date
    Aug 2012
    Posts
    3

    Default Checkout Error on checkoutshipping.aspx Page

    Hi All,

    Getting the following error when click the "checkout" button from the shopping cart. Any ideas of what could be causing it? I have two sites running identical 'checkoutshipping.aspx' pages (I compared lines 33-37 in the code) and one is working fine and the other is not.

    =======================================

    Server Error in '/' Application.

    Object reference not set to an instance of an object.

    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.NullReferenceException: Object reference not set to an instance of an object.

    Source Error:

    Line 33: cart = new ShoppingCart(SkinID, ThisCustomer, CartTypeEnum.ShoppingCart, 0, false);
    Line 34:
    Line 35: ShippingMethodCollection shippingMethods = cart.GetShippingMethods(ThisCustomer.PrimaryShippi ngAddress);
    Line 36: if (shippingMethods.Count > 0)
    Line 37: {

  2. #2
    Join Date
    Feb 2009
    Posts
    683

    Default

    Does it error everytime or is it sporadic?

    Im guessing on line 37 shippingMethods is null.

    Do you have valid shipping methods configured?

  3. #3
    Join Date
    Aug 2012
    Posts
    3

    Default

    Thanks for replying. This error occurs on every instance. We have the following shipping methods set up.

    1 Shipping charge
    2 FedEx Priority
    3 FedEx 2nd Day
    4 FedEx First Overnight
    5 FedEx Standard Overnight
    6 FedEx Express Saver
    7 FedEx Home Delivery
    8 FedEx Ground Service
    9 FedEx International Economy
    10 FedEx International Priority

    Anything else it could be?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •