Server Error in '/store' 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 441:        _SelectedKitProducts = new List<int>();
Line 442:        //COLLECT ANY KIT VALUES
Line 443:        foreach (ProductKitComponent pkc in _Product.ProductKitComponents)
Line 444:        {
Line 445:            // FIND THE CONTROL

Source File: c:\web\MisesShop\ConLib\BuyProductDialog.ascx.cs    Line: 443

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ConLib_BuyProductDialog.GetSelectedKitOptions() in c:\web\MisesShop\ConLib\BuyProductDialog.ascx.cs:443
   ConLib_BuyProductDialog.Page_PreRender(Object sender, EventArgs e) in c:\web\MisesShop\ConLib\BuyProductDialog.ascx.cs:372
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +33
   System.Web.UI.Control.OnPreRender(EventArgs e) +2117788
   System.Web.UI.Control.PreRenderRecursiveInternal() +86
   System.Web.UI.Control.PreRenderRecursiveInternal() +170
   System.Web.UI.WebControls.WebParts.WebPart.PreRenderRecursiveInternal() +62
   System.Web.UI.Control.PreRenderRecursiveInternal() +170
   System.Web.UI.Control.PreRenderRecursiveInternal() +170
   System.Web.UI.Control.PreRenderRecursiveInternal() +170
   System.Web.UI.Control.PreRenderRecursiveInternal() +170
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2041


Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433