HomeHome Product Discus... Product Discus...SmithCartSmithCartDifferent error deleting item from cartDifferent error deleting item from cart
Previous
 
Next
New Post
10/27/2010 4:03 PM
 

Smith cart version 3.88, DNN version 5.5.

I have found a bug when deleting an item from my cart. It seems different to one that was reported earlier by others. Appreciate your help with this.

When a user deletes an item, the user is sent back to the buy-now page, with the error:

A critical error has occurred.
specified cast is not valid.

The item remains in the cart.

Here is the exception from the event viewer:

AssemblyVersion: 5.5.0
PortalID: 0
UserID: -1
UserName:
ActiveTabID: 61
ActiveTabName: Online Store
RawURL: /OnlineStore/tabid/61/ctl/Cart/mid/460/Default.aspx
AbsoluteURL: /Default.aspx
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.63 Safari/534.3
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: cb5b987d-dec7-4f52-a630-74a399e4c88b
InnerException: Specified cast is not valid.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: Smith.DNN.Modules.BuyNow.Cart.grdFinal_RowDeleting
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: Specified cast is not valid. ---> System.InvalidCastException: Specified cast is not valid. at Smith.DNN.Modules.BuyNow.Cart.grdFinal_RowDeleting(Object sender, GridViewDeleteEventArgs e) at System.Web.UI.WebControls.GridView.OnRowDeleting(GridViewDeleteEventArgs e) at System.Web.UI.WebControls.GridView.HandleDelete(GridViewRow row, Int32 rowIndex) at System.Web.UI.WebControls.GridView.HandleEvent(EventArgs e, Boolean causesValidation, String validationGroup) at System.Web.UI.WebControls.GridView.OnBubbleEvent(Object source, EventArgs e) at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) at System.Web.UI.WebControls.GridViewRow.OnBubbleEvent(Object source, EventArgs e) at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) at System.Web.UI.WebControls.ImageButton.OnCommand(CommandEventArgs e) at System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---

 
New Post
10/27/2010 4:37 PM
 

Is the product you are deleting a bundled product?


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
10/27/2010 5:00 PM
 

Yes.

Well, it is the main product, and other items are bundled with it.

 
New Post
10/27/2010 5:02 PM
 

Yes we had this issue reported before when deleting bundled products from the cart. Programming has it on their "to do" list to check out. Thanks for reporting it!

-Scott


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
10/27/2010 5:06 PM
 

Ok, thanks Scott. Hopefully there will be a hotfix soon!

Any tips in the mean time?

Un-bundling is the only one I can think of...

 
New Post
10/27/2010 5:11 PM
Accepted Answer 

Unbundling the product will work for the time being.

-Scott


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartDifferent error deleting item from cartDifferent error deleting item from cart