Page 1 of 1

Error when logged in

Posted: Wed Oct 03, 2007 8:58 am
by tomascarpio5
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

Posted: Wed Oct 03, 2007 9:22 am
by Shopping Cart Admin
Hello Tom,

I'm always logged in as Admin and I've never seen either of these errors, can you give me some additional information on how to replicate these errors?

If it's specific to a particular product please private message me the demo store URL and login information so I can check it out.

I wonder if this has something to do with the fact that we compiled entire demo store project so it was faster to load initially.

Posted: Sun Oct 14, 2007 9:37 am
by tomascarpio5
Hi Mike,
I'm not sure what happen, but I decided to re-install and the problem went away.

Thanks!