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 33:         var price = CustomerGroupDiscountManager.FetchCustomerGroupPrice(productItem);
Line 34: 
Line 35:         var tax = TaxManager.CalculateTax(GetTaxRate(productItem.Product.TaxRateId), price);
Line 36: 
Line 37:         return price + tax;

Source File: c:\websites\theultimatefinish.co.uk\htdocs\App_Code\Pricing.cs    Line: 35

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Pricing.GetPrice(Int32 productItemId) in c:\websites\theultimatefinish.co.uk\htdocs\App_Code\Pricing.cs:35
   Store_Product_ProductDetails.GetPrice(Product product) in c:\websites\theultimatefinish.co.uk\htdocs\Store\Product\ProductDetails.aspx.cs:419
   ASP.store_product_productdetails_aspx.__DataBind__control21(Object sender, EventArgs e) in c:\websites\theultimatefinish.co.uk\htdocs\Store\Product\ProductDetails.aspx:100
   System.Web.UI.Control.OnDataBinding(EventArgs e) +84
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +150
   System.Web.UI.Control.DataBind() +17
   System.Web.UI.Control.DataBindChildren() +185
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +160
   System.Web.UI.Control.DataBind() +17
   MonsterCart.WebControls.ProductDetailsPanel.CreateChildControls() +187
   System.Web.UI.Control.EnsureChildControls() +92
   System.Web.UI.Control.PreRenderRecursiveInternal() +42
   System.Web.UI.Control.PreRenderRecursiveInternal() +160
   System.Web.UI.Control.PreRenderRecursiveInternal() +160
   System.Web.UI.Control.PreRenderRecursiveInternal() +160
   System.Web.UI.Control.PreRenderRecursiveInternal() +160
   System.Web.UI.Control.PreRenderRecursiveInternal() +160
   System.Web.UI.Control.PreRenderRecursiveInternal() +160
   System.Web.UI.Control.PreRenderRecursiveInternal() +160
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +883


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.4092.0