Page 1 of 1

Product Page Error

Posted: Fri Feb 19, 2016 8:15 am
by egormsen
Here is something else that is showing up in our error log. These error has happened 23 times in the past three days.

Any ideas what is causing this? And of course it never happens when I hit the page so I haven't been able to duplicate it

Code: Select all

An error has occured at http://store.weighdown.com/product.aspx?productid=1016 An error has occured at http://store.weighdown.com/product.aspx?productid=1016 
Exception: Exception of type 'System.Web.HttpUnhandledException' was thrown. Stack Trace: at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.product_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\942f1355\f9cd0b69\App_Web_4uhiaakz.23.cs:line 0 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) Inner Exception: Object reference not set to an instance of an object. Inner Exception Stack Trace: at AbleCommerce.Code.ProductHelper.CollectProductTemplateInput(BasketItem item, Control container) in c:\inetpub\wwwroot\store2\App_Code\ProductHelper.cs:line 551 at AbleCommerce.ConLib.BuyProductDialog.GetBasketItem(Boolean alwaysCreateNew) in c:\inetpub\wwwroot\store2\ConLib\BuyProductDialog.ascx.cs:line 421 at AbleCommerce.ConLib.BuyProductDialog.AddToBasketButton_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\store2\ConLib\BuyProductDialog.ascx.cs:line 577 at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)type 'System.Web.HttpUnhandledException' was thrown. Stack Trace: at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.product_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\942f1355\f9cd0b69\App_Web_4uhiaakz.23.cs:line 0 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) Inner Exception: Object reference not set to an instance of an object. Inner Exception Stack Trace: at AbleCommerce.Code.ProductHelper.CollectProductTemplateInput(BasketItem item, Control container) in c:\inetpub\wwwroot\store2\App_Code\ProductHelper.cs:line 551 at AbleCommerce.ConLib.BuyProductDialog.GetBasketItem(Boolean alwaysCreateNew) in c:\inetpub\wwwroot\store2\ConLib\BuyProductDialog.ascx.cs:line 421 at AbleCommerce.ConLib.BuyProductDialog.AddToBasketButton_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\store2\ConLib\BuyProductDialog.ascx.cs:line 577 at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Re: Product Page Error

Posted: Fri Feb 19, 2016 9:29 am
by jguengerich
Apparently the method CollectProductTemplateInput(BasketItem item, Control container) in App_Code\ProductHelper.cs is getting called with item set to null. The Inner Exception Stack Trace points back to the GetBasketItem(Boolean alwaysCreateNew) method in the BuyProductDialog.ascx.cs control. Looking at where that method calls CollectProductTemplateInput, I'm not sure how the basketItem it is sending could be null, however. Wrapping that call in an if (basketItem != null) { } statement would prevent the error, but that feels like treating the symptom, not the cause. Maybe someone else can help with the cause.

Re: Product Page Error

Posted: Fri Feb 19, 2016 11:06 am
by Katie
c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\942f1355\f9cd0b69\App_Web_4uhiaakz.23.cs:line 0 a
Sometimes...when we see this in the error messages, there is some issue with the Temporary Asp.net files being cached on the server. You can try recycling the application pool to start with. If that doesn't work, delete the temp files from the folder.

Try that first and if you are still getting a lot of errors we can look into your product configuration and try to reproduce the issue.