HomeHome Product Discus... Product Discus...SmithCartSmithCartCritical Error on Cart - Unable to cast object of type Critical Error on Cart - Unable to cast object of type 'System.Web.UI.WebControls.LinkButton' to...
Previous
 
Next
New Post
5/25/2011 4:43 AM
 

I realize others have posted about issues with viewing the cart.  I checked those errors first, but I'm getting a slightly different error.  I upgraded the cart this morning to the vesion downloaded yesterday morning (4.31.00) and get this when trying to view the cart.  I've added one item to the cart and then clicked checkout on the mini cart and get a crticial error.  This worked previously.

A critical error has occurred.
Unable to cast object of type 'System.Web.UI.WebControls.LinkButton' to type 'System.Web.UI.WebControls.Button'.

 

This is in the DNN event log.

 

AssemblyVersion: 5.5.1
PortalID: 12
PortalName: MY PORTAL (changed)
UserID: 1
UserName: USERNAME (changed)
ActiveTabID: 1830
ActiveTabName: Product Details
RawURL: /Store/ProductDetails.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://www.myportal.com/Store/ProductDetails.aspx (changed)
UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 29f9fab1-94e8-4500-ac77-4945078e866e
InnerException: Unable to cast object of type 'System.Web.UI.WebControls.LinkButton' to type 'System.Web.UI.WebControls.Button'.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: Smith.DNN.Modules.MiniCart.MiniCart.IbCheckout_Click
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: Unable to cast object of type 'System.Web.UI.WebControls.LinkButton' to type 'System.Web.UI.WebControls.Button'. ---> System.InvalidCastException: Unable to cast object of type 'System.Web.UI.WebControls.LinkButton' to type 'System.Web.UI.WebControls.Button'. at Smith.DNN.Modules.MiniCart.MiniCart.IbCheckout_Click(Object sender, EventArgs e) at System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.LinkButton.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 ---
Source:
Server Name: SERVERNAME

 
New Post
5/25/2011 6:26 AM
 
Update - I installed 4.31 downloaded this morning (since it seems you've posted some patches) but I'm still getting these errors.
 
New Post
5/25/2011 2:49 PM
 
Hi Steven,

Have you set the BuyNow Page Name in the Minicart settings?

Thanks, Kevin
 
New Post
5/25/2011 8:11 PM
 
Yes it's set, just double checked it. It was working before the upgrade.
 
New Post
5/25/2011 10:15 PM
 
Hi Steven,

I have tried to re-produce this error on my test portal but I am unable to recreate the error but I may not have the exact same configuration as you. Can you login to our test site http://www16.smith-consulting.com/ and try to replicate the error. This will determine if the issue is with the latest version of the cart or an issue with your specific dnn portal/cart install.

Please send me an email to kevin@smith-consulting.com if you need a login.

Thanks, Kevin


 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartCritical Error on Cart - Unable to cast object of type Critical Error on Cart - Unable to cast object of type 'System.Web.UI.WebControls.LinkButton' to...