Add to Cart Error: Object not set as an instance
After building the solution and browsing the site, I get an error message if I try to add an item to the cart. I get this error: "Object reference not set to an instance of an object." However, if I create a user and add an item to the cart while signed in with a user, it allows the add. Help would be lovely.
Line 248: oi.SKU = (string)currentRow["SKU"];
Line 249: oi.Special = false;
Line 250: >>>>>>>>>>>>>>> currentOrder.OrderItems.Add( oi );
Line 251:
Line 252: currentRunningTotal += extPrice;
Source File: C:\Inetpub\wwwroot\GWSetup\ShoppingCart.aspx.cs Line: 250
This is DIRECTLY after installing all code, restoring database, building the solution, and browsing the site - ALL within Visual Studios .NET and NOT hand-coded.
Thank - Garby
|