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) +12992954
   Vianett.Ecommerce.Common.Data.ProductCollection.get_Item(Int32 index) +4
   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:2224
   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:809
   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:694
   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:357
   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
   Vianett.Publishing.Web.pubdynamiccontent.Page_Load(Object sender, EventArgs e) in C:\projects\frigg\Website\Web\usercontrol\tagmodule\pubDynamicContent.ascx.vb:83
   System.Web.UI.Control.OnLoad(EventArgs e) +79
   System.Web.UI.Control.LoadRecursive() +130
   System.Web.UI.Control.LoadRecursive() +200
   System.Web.UI.Control.LoadRecursive() +200
   System.Web.UI.Control.LoadRecursive() +200
   System.Web.UI.Control.LoadRecursive() +200
   System.Web.UI.Control.LoadRecursive() +200
   System.Web.UI.Control.LoadRecursive() +200
   System.Web.UI.Control.LoadRecursive() +200
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2853


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