Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 3 of 3

Thread: Checkout Error on checkoutshipping.aspx Page

  1. #1
    swaters is offline Junior Member
    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
    ssgumby is offline Senior Member
    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
    swaters is offline Junior Member
    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?