Product Page Error

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
egormsen
Captain (CAPT)
Captain (CAPT)
Posts: 236
Joined: Fri May 16, 2008 9:16 am

Product Page Error

Post by egormsen » Fri Feb 19, 2016 8:15 am

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)
Eldon Gormsen
Weigh Down Ministries
AC Gold R12 SR1
http://store.weighdown.com

jguengerich
Commodore (COMO)
Commodore (COMO)
Posts: 436
Joined: Tue May 07, 2013 1:59 pm

Re: Product Page Error

Post by jguengerich » Fri Feb 19, 2016 9:29 am

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.
Jay

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Product Page Error

Post by Katie » Fri Feb 19, 2016 11:06 am

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.
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

Post Reply