Welcome to Vortx Community Forum, where you can ask questions and receive answers from the staff at Vortx and other members of the community.

If you had a user account on our previous forums website, you will need to register a new account here.

Learn more about...

AspDotNetStorefront
DotFeed

Recieving a XMLPackageException when Restricted Quantities value is set.

After updating from AspDotNetStorefront 9.2.x to 9.4.1.0 we are recieving the following error on the product detail page for any product with Restricted Quantities set.  This was first discovered on a product with Restricted Quantities set to 1,2,3,4,5,6,7,8,9,10 which worked without error in the previous version of AspDotNetStorefront.  In running some tests on the product.simpleproduct.xml.config file it was determined that the error was occurring on the <xsl:value-of select="aspdnsf:AddtoCartForm(ProductID, VariantID, 1)" disable-output-escaping="yes"/> tag.  Does the formatting of the Restricted Quantities need to be changed, or is there something that we'd missed during the update process?
 

XmlPackageException Error Error has occured on xml package: product.simpleproduct.xml.config

Page URL:/webroot/p-14-valve-screw.aspx
Source:mscorlib
Message:Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
Stack Trace:
at System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args)
at System.Text.StringBuilder.AppendFormat(String format, Object[] args)
at AspDotNetStorefrontCore.ShoppingCart.GetAddToCartForm(Customer ThisCustomer, Boolean forPack, Boolean forKit, Boolean showWishListButton, Boolean showGiftRegistryButton, Int32 ProductID, Int32 VariantID, Int32 SkinID, Int32 DisplayFormat, String LocaleSetting, Boolean ColorChangeProductImage, VariantStyleEnum VariantStyle, Boolean isKit2)
at AspDotNetStorefrontCore.ShoppingCart.GetAddToCartForm(Customer ThisCustomer, Boolean forPack, Boolean forKit, Boolean showWishListButton, Boolean showGiftRegistryButton, Int32 ProductID, Int32 VariantID, Int32 SkinID, Int32 DisplayFormat, String LocaleSetting, Boolean ColorChangeProductImage, VariantStyleEnum VariantStyle)
at AspDotNetStorefrontCore.ShoppingCart.GetAddToCartForm(Customer ThisCustomer, Boolean forPack, Boolean showWishListButton, Boolean showGiftRegistryButton, Int32 ProductID, Int32 VariantID, Int32 SkinID, Int32 DisplayFormat, String LocaleSetting, Boolean ColorChangeProductImage, VariantStyleEnum VariantStyle)
at AspDotNetStorefrontCore.XSLTExtensionBase.AddtoCartForm(String sProductID, String sVariantID, String sColorChangeProductImage)


Update:
AspDotNetStorefront support has responded to a request regarding this issue and has confirmed that this is a bug specific to AspDotNetStorefront 9.4.1.0 which will be corrected in a future update.

asked May 12, 2014 in MultiStore by swg_mcherry (110 points)
edited May 16, 2014 by swg_mcherry

1 Answer

0 votes

I would recommend submitting a support ticket to ASPDNSF, however, did you try using the stock version of that XmlPackage to rule out that it isn't your XmlPackage?

Thank you,
Jan
 
Compunix, LLC (Phoenix, AZ)
AspDotNetStorefront Development Partner and Reseller since 2005
------------------------------------------------------------------------------------------------------
 AspDotNetStorefront add-ons and plugins : http://www.ecommercecartmods.com
 Complete Automotive Solution : http://www.autopartsshoppingcart.com
------------------------------------------------------------------------------------------------------
answered May 13, 2014 by jsimacek (6,805 points)
Yes, the stock version of the XmlPackage produces the same error that the customized version of the files had.

I will submit a support ticket in additional to what I've posted here.  I was hoping to get a response here to help anyone else out there that may encounter this problem.
...