Server Error in '/' Application.

Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index]
   System.Collections.ArrayList.get_Item(Int32 index) +14814396
   Vianett.Ecommerce.Common.Data.ProductCollection.get_Item(Int32 index) +9
   Vianett.Publishing.Template.Ecommerce.template_converter_base.GetTagObject(String tagname, Product product) in C:\projects\frigg\Website\Template\Ecommerce\template_converter_base.cs:1595
   Vianett.Publishing.Template.ItemTemplateXMLParser.GetProductItemValue(DataRow row, Product& product) in C:\projects\frigg\Website\Template\Convert\ItemTemplateXMLParser.cs:2225
   Vianett.Publishing.Template.ItemTemplateXMLParser.ParseDefinedTags(MatchCollection tags, String itemXml, DataRow row, Product& product, Boolean replaceEmptyValue, Boolean onlyRowValue, Int32 iteration) in C:\projects\frigg\Website\Template\Convert\ItemTemplateXMLParser.cs:810
   Vianett.Publishing.Template.ItemTemplateXMLParser.ParseItemXml(Int32 systemID, Int32 ecommerceSystemID, String itemXml, DataRow row, Int32 sourceWebsiteCategoryID, Int32 iteration, HttpContext context, Product product, String dateFormat, String oddEven, Int64 postID, Int32 productID, Int32 articleID, Boolean replaceEmptyValue, Boolean ignoreGetProduct, JToken jToken) in C:\projects\frigg\Website\Template\Convert\ItemTemplateXMLParser.cs:695
   Vianett.Publishing.Template.ItemTemplateXMLParser.ParseItemControl(Int32 systemID, Int32 ecommerceSystemID, String dynamicXml, DataRow row, Int32 sourceWebsiteCategoryID, Int32 iteration, HttpContext context, Product product, String dateFormat, String oddEven, Int64 postID, Int32 productID, Int32 articleID, String placeHolderID, Boolean replaceEmptyValue, Boolean skipRazor) in C:\projects\frigg\Website\Template\Convert\ItemTemplateXMLParser.cs:358
   Vianett.Publishing.Web.pubdynamiccontent.GenerateItemTemplateContent(String tphDynamicXml) in C:\projects\frigg\Website\Web\usercontrol\tagmodule\pubDynamicContent.ascx.vb:297
   Vianett.Publishing.Web.pubdynamiccontent.GenerateData() in C:\projects\frigg\Website\Web\usercontrol\tagmodule\pubDynamicContent.ascx.vb:171
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +154
   System.Web.UI.Control.LoadRecursive() +251
   System.Web.UI.Control.LoadRecursive() +251
   System.Web.UI.Control.LoadRecursive() +251
   System.Web.UI.Control.LoadRecursive() +251
   System.Web.UI.Control.LoadRecursive() +251
   System.Web.UI.Control.LoadRecursive() +251
   System.Web.UI.Control.LoadRecursive() +251
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4082


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.4087.0