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 386:                else
Line 387:                {
Line 388:                    condition = condition + "(ProdPartsNumber between '" + subProdPartKeys[0].Trim() + "%' AND '" + subProdPartKeys[1].Trim() + "%') OR ";
Line 389:                }
Line 390:            }

Source File: c:\inetpub\vhosts\strathcon.com\httpdocs\product-detail.aspx.cs    Line: 388

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   product_detail.BindProductParts(String ProductId, String strProdPartKeys) in c:\inetpub\vhosts\strathcon.com\httpdocs\product-detail.aspx.cs:388
   product_detail.BindProduct() in c:\inetpub\vhosts\strathcon.com\httpdocs\product-detail.aspx.cs:474
   product_detail.Page_Load(Object sender, EventArgs e) in c:\inetpub\vhosts\strathcon.com\httpdocs\product-detail.aspx.cs:99
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678


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