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 577:        _SelectedKitProducts = new List<int>();
Line 578:        //COLLECT ANY KIT VALUES
Line 579:        foreach (ProductKitComponent pkc in _Product.ProductKitComponents)
Line 580:        {
Line 581:            // FIND THE CONTROL

Source File: c:\inetpub\www.capstoneimaging.com\ConLib\Custom\BuyProductDialog.ascx.cs    Line: 579

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ConLib_BuyProductDialog.GetSelectedKitOptions() in c:\inetpub\www.capstoneimaging.com\ConLib\Custom\BuyProductDialog.ascx.cs:579
   ConLib_BuyProductDialog.Page_PreRender(Object sender, EventArgs e) in c:\inetpub\www.capstoneimaging.com\ConLib\Custom\BuyProductDialog.ascx.cs:506
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +24
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +41
   System.Web.UI.Control.OnPreRender(EventArgs e) +11160813
   System.Web.UI.Control.PreRenderRecursiveInternal() +107
   System.Web.UI.Control.PreRenderRecursiveInternal() +223
   System.Web.UI.Control.PreRenderRecursiveInternal() +223
   System.Web.UI.Control.PreRenderRecursiveInternal() +223
   System.Web.UI.Control.PreRenderRecursiveInternal() +223
   System.Web.UI.Control.PreRenderRecursiveInternal() +223
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3393


Version Information: Microsoft .NET Framework Version:2.0.50727.8974; ASP.NET Version:2.0.50727.8975