HomeHome Product Discus... Product Discus...SmithCartSmithCartUnable to cast object of type Unable to cast object of type 'System.String' to type 'System.Collections.Specialized.NameValueColle
Previous
 
Next
New Post
3/15/2012 6:43 AM
 

I started to build my a shopping cart with variants and I get this error message in the 'store' page:

Unable to cast object of type 'System.String' to type 'System.Collections.Specialized.NameValueCollection'.

 

Does anyone has any idea how to avoid or solve this error?

 
New Post
3/15/2012 1:28 PM
 
Hello,

Which version of the Cart and DNN are you currently running?

What are the steps taken to produce the error above?

Are the any errors logged to your DNN Event Viewer?

Thanks,
 
New Post
3/18/2012 11:47 PM
 

Hello Kevin, thank you for checking in. We are actually using Smith cart (trial) v 4.93 on DNN 05.06.00 with SQL Express 2008 and JQuery 1.4.2. The repro steps are quite straight forward

1. We add products in the store

2. We go to the 'store' page and we click on "ADD TO CART" button

3. Get the error: "Unable to cast object of type 'System.String' to type 'System.Collections.Specialized.NameValueCollection'."

Note that currently...

Sign in page is hidden

Require login is disabled

Where should I look next?

 
New Post
3/19/2012 5:37 AM
 
After I deleted all the cookies (which emptied my shopping cart), I was able to get 1 step further...

1. We add products in the store

2. We go to the 'store' page and we click on "ADD TO CART" button

3. Click on VIEW Cart

Get the error: "Unable to cast object of type 'System.String' to type 'System.Collections.Specialized.NameValueCollection'."

Here is a typical error log...

1946890 [2012-03-19 05:30:29,855] DEBUG In SaveToCartTable Procedure
1946890 [2012-03-19 05:30:29,855] DEBUG General Exception errorSpecified cast is not valid.
1946890 [2012-03-19 05:30:29,855] DEBUG General Exception errorApp_SubCode_Smith.BuyNow
1946890 [2012-03-19 05:30:29,855] DEBUG General Exception error at Smith.DNN.Modules.BuyNow.MyCart.SaveToCartTable(DataTable myProductList)


What is wrong you think?
 
New Post
3/19/2012 6:03 PM
 
Hello,

When you say "We go to the 'store' page", are you referring to the page with the BuyNow module or the Product Detail module added ?

Thanks,
 
New Post
3/20/2012 2:32 AM
 

Thank you for asking Kevin and excuse my inexperience with Smith Cart,

I was actually click on VIEW CART button located in the Smith.MiniCart module located in the product detail page.

 

 
New Post
3/20/2012 6:36 PM
 
Hello,

Are you in the Product Details module settings, under the "Mini Cart Setup" section, which option do you have selected?

If you are using the Smith Mini Cart module, did you set the BuyNow Page Name in the Smith Mini Cart module settings?

Thanks,
 
New Post
3/20/2012 7:31 PM
 

Hello Kevin, thank you for your patience.

 

I am in the product detail module settings (in PD page). The mini cart setup is set to "Show Built-In Mini Cart"

I also have also the  Buy Now Page Name set to the actual Buy Now page.

What should I do next? Uninstall and re-install Smith Shopping cart?

 
New Post
3/22/2012 4:32 PM
 

Hello,

Are you only using the built-in MiniCart, or have you added the Smith MiniCart module to the page as well?

Can you login to our test site http://www7.smith-consulting.com/ and try to replicate this issue? 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 an email to kevin@smith-consulting.com if you need login credentials.

Thanks,

 
New Post
3/22/2012 7:05 PM
 
Hello Kevin, thank you again for the extra attention. I confirm I cannot repro the issue with test site: http://www7.smith-consulting.com/ using the same browser.

I start to suspect that something went wrong with our initial installation (which required to change our config file to accommodate the fact we run on SQL Server Express).

Any other thoughts before I proceed with an uninstall and re-install?
 
New Post
3/23/2012 3:51 PM
 

Hello,

When you say something went wrong in your installation, do you mean the installation of DNN or SmithCart?

Were there any errors displayed upon the installation of DNN or SmithCart?

If you are going to do a reinstall of the Cart I suggest using the following post for instruction on completing a clean installation of the module to insure successful rei-installation:

http://www.smith-consulting.com/Forum...

Thanks,

 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartUnable to cast object of type Unable to cast object of type 'System.String' to type 'System.Collections.Specialized.NameValueColle