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

Source File: c:\eShopKey\ASP.Net\Shops\dpam_Dev\cache.incx    Line: 1978

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, String fFieldStr, Int64 OrderBy, Int64 Direction, Int64 PageNo, Int64 PageSize, String strLookup, Int64 LastSelectionId, Int64& NoPages, dpam myElastic) in c:\eShopKey\ASP.Net\Shops\dpam_Dev\cache.incx:1978
   ASP.searchshop2_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in c:\eShopKey\ASP.Net\Shops\dpam_Dev\SearchShop2.aspx:791
   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) +9490


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