Error when logged in
Posted: Wed Oct 03, 2007 8:58 am
Hi Guys,
It's weird that I'm getting the errors when the BASKET is being accessed when logged in as admin, but it goes away when you are just navigating with out logging in.
1. the error below shows up when opening page Basket.aspx
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 54: Basket basket = Token.Instance.User.Basket;
Line 55: //WE WANT TO RESET THE GIFT OPTIONS AT THIS STAGE
Line 56: basket.Package(true);
Line 57: BasketItemCollection displayItems = new BasketItemCollection();
Line 58: foreach (BasketItem item in basket.Items)
Source File: c:\Program Files\Able Solutions\ac7\ConLib\Basket.ascx.cs Line: 56
2. the error below shows up when opening the product page
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 26: //PREPARE BASKET FOR DISPLAY
Line 27: Basket basket = Token.Instance.User.Basket;
Line 28: basket.Combine();
Line 29: basket.Package(true);
Line 30: basket.Recalculate();
Source File: c:\Program Files\Able Solutions\ac7\ConLib\MiniBasket.ascx.cs Line: 28
Thanks,
Tomas
It's weird that I'm getting the errors when the BASKET is being accessed when logged in as admin, but it goes away when you are just navigating with out logging in.
1. the error below shows up when opening page Basket.aspx
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 54: Basket basket = Token.Instance.User.Basket;
Line 55: //WE WANT TO RESET THE GIFT OPTIONS AT THIS STAGE
Line 56: basket.Package(true);
Line 57: BasketItemCollection displayItems = new BasketItemCollection();
Line 58: foreach (BasketItem item in basket.Items)
Source File: c:\Program Files\Able Solutions\ac7\ConLib\Basket.ascx.cs Line: 56
2. the error below shows up when opening the product page
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 26: //PREPARE BASKET FOR DISPLAY
Line 27: Basket basket = Token.Instance.User.Basket;
Line 28: basket.Combine();
Line 29: basket.Package(true);
Line 30: basket.Recalculate();
Source File: c:\Program Files\Able Solutions\ac7\ConLib\MiniBasket.ascx.cs Line: 28
Thanks,
Tomas