Server Error in '/' Application.

Index was outside the bounds of the array.

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.IndexOutOfRangeException: Index was outside the bounds of the array.

Source Error:


Line 597:            {
Line 598:                string[] oldpl = oldstato.Split(new string[] { separatoretag }, StringSplitOptions.None);
Line 599:                funzioni.Add(oldpl[0].ToString(), oldpl[1].ToString().Split(',').Where(x => !string.IsNullOrEmpty(x)).ToList());
Line 600:
Line 601:                //try

Source File: c:\WEBFARM_MILITARIA\localuser\ftpmilitaria2\App_Code\elastic.cs    Line: 599

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   Elastic.search(String taglia, String v1, Int32 da, Int32 size, String cat1, String ordine, Int64 from, Int64 to, String brand, String tags, Boolean pesodispo, Boolean aggrega, Boolean noterm, Boolean solopromo, Int32 sconto, String tipoprodotto, String multi) in c:\WEBFARM_MILITARIA\localuser\ftpmilitaria2\App_Code\elastic.cs:599
   catalogo.fillList() in c:\WEBFARM_MILITARIA\localuser\ftpmilitaria2\catalogo.aspx.cs:1178
   catalogo.Page_Load(Object sender, EventArgs e) in c:\WEBFARM_MILITARIA\localuser\ftpmilitaria2\catalogo.aspx.cs:1017
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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