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 672:        _SelectedKitProducts = new List<int>();
Line 673:        //COLLECT ANY KIT VALUES
Line 674:        foreach (ProductKitComponent pkc in _Product.ProductKitComponents)
Line 675:        {
Line 676:            // FIND THE CONTROL

Source File: c:\inetpub\www.frontierimaging.com\ConLib\Custom\BuyProductDialog.ascx.cs    Line: 674

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ConLib_BuyProductDialog.GetSelectedKitOptions() in c:\inetpub\www.frontierimaging.com\ConLib\Custom\BuyProductDialog.ascx.cs:674
   ConLib_BuyProductDialog.Page_PreRender(Object sender, EventArgs e) in c:\inetpub\www.frontierimaging.com\ConLib\Custom\BuyProductDialog.ascx.cs:596
   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