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 2058:            TrackCacheStatistics("SearchShopElasticCache_", 2);
Line 2059:            TrackCacheStatistics("SearchShopElasticCachePages_", 2);
Line 2060:            DS = myElastic.dpam_SearchShopElastic(Convert2Integer(Application["ShopId"]), 1, 0, 1, Title, CategoryId, ActiveFlag, Price1, Price2, "", UserId, "", "", AttrStr, TableStr, TableLookupStr, TableLookupStrWithoutCategories, "", "", "", "", 1, 1, OrderBy, Direction, PageNo, PageSize, strLookup, LastSelectionId, ref NoPages);
Line 2061:
Line 2062:			if (DS!=null) {

Source File: c:\eShopKey\ASP.Net\Shops\dpam\cache.incx    Line: 2060

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   SA_Elastic6.dpam.dpam_SearchShopElastic(Int64 ShopId, Int64 UseFullText, Int64 SearchType, Int64 BooleanSearch, String SearchString, Int64 CategoryId, Int64 Active, Double Price1, Double Price2, String Serial, Int64 UserId, String DateAdded1, String DateAdded2, String AttrStr, String TableStr, String TableLookupStr, String TableLookupVirtualStr, String iFieldStr, String fFieldStr, String sFieldStr, String dFieldStr, Int64 ShowMaster, Int64 ShowCombos, Int64 OrderBy, Int64 Direction, Int64 PageNo, Int64 PageSize, String TableLookupStrOut, Int64 LastSelectionId, Int64& NoPages) +38002
   ASP.searchshop2_aspx.SearchShopElasticCache(String Title, Int64 CategoryId, Int64 ActiveFlag, Double Price1, Double Price2, Int64 UserId, String AttrStr, String TableStr, String TableLookupStr, String TableLookupStrWithoutCategories, Int64 OrderBy, Int64 Direction, Int64 PageNo, Int64 PageSize, String strLookup, Int64 LastSelectionId, Int64& NoPages, dpam myElastic) in c:\eShopKey\ASP.Net\Shops\dpam\cache.incx:2060
   ASP.searchshop2_aspx.DrawCategoryList(Int64 TopParentId, Int64 CategoryId, Int64 Level, String Params, String CatStr, String Title, Int64 PageType, Shop myShop, dpam myElastic) in c:\eShopKey\ASP.Net\Shops\dpam\cache_Search.incx:689
   ASP.searchshop2_aspx.DrawCategoryListCache(Int64 TopParentId, Int64 CategoryId, Int64 Level, String Params, String CatStr, String Title, Int64 PageType, Shop myShop, dpam myElastic) in c:\eShopKey\ASP.Net\Shops\dpam\cache_Search.incx:616
   ASP.searchshop2_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in c:\eShopKey\ASP.Net\Shops\dpam\SearchShop2.aspx:1761
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +117
   System.Web.UI.Page.Render(HtmlTextWriter writer) +39
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +132
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +7880


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