Recently we decided to turn on zoomify for our website and ran into an issue on product pages that have color:
XmlPackage Exception: Exception=Last Trace Point=[]. An error occurred during a call to extension function 'LookupProductImage'. See InnerException for a complete description of the error.
StartIndex cannot be less than zero. Parameter name: startIndex
System.ArgumentException: Last Trace Point=[]. An error occurred during a call to extension function 'LookupProductImage'. See InnerException for a complete description of the error.
StartIndex cannot be less than zero. Parameter name: startIndex
at AspDotNetStorefrontCommon.XmlPackage2.TransformStr ing() in C:\projects\trunk\Websites\MuseumReplicas.com\ASPD NSFCommon\XmlPackage2.cs:line 629 at AspDotNetStorefrontCommon.AppLogic.RunXmlPackage(X mlPackage2 p, Parser UseParser, Customer ThisCustomer, Int32 SkinID, Boolean ReplaceTokens, Boolean WriteExceptionMessage) in C:\projects\trunk\Websites\MuseumReplicas.com\ASPD NSFCommon\AppLogic.cs:line 1209
Upon debugging I found that this error could be traced to the function LoadFromDB in ProductImageGallery and specifically the loop:
foreach (String c in m_ColorsSplit)
{
From my understanding, in the above loop, aspdnsf is trying to determine the location of images based on the colors. This is leading to a null valued image URL and the error above. If I comment out this loop, the products show up ok and I am able to zoom as well but I believe that I am commenting out the color swatch feature. Has anyone come across this? Possible solutions?
Appreciate the help
- Nirmal