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