Server Error in '/' Application.

Exception of type 'System.OutOfMemoryException' was thrown.

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.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.

Source Error:


Line 941:
Line 942:
Line 943:        var searchResponse = client.Search<Prodotto>(s =>s
Line 944:        .Index("prodotti_"+ sito+ lingua) 
Line 945:        .From(da)

Source File: c:\WEBFARM_MILITARIA\localuser\ftpbarchiesi\App_Code\elastic.cs    Line: 943

Stack Trace:


[OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.]
   Deserialize(Object[] , JsonReader& , IJsonFormatterResolver ) +0
   Elasticsearch.Net.Utf8Json.JsonSerializer.Deserialize(Byte[] bytes, Int32 offset, IJsonFormatterResolver resolver) +179
   Elasticsearch.Net.Utf8Json.JsonSerializer.Deserialize(Stream stream, IJsonFormatterResolver resolver) +660
   Elasticsearch.Net.DiagnosticsSerializerProxy.Deserialize(Stream stream) +153
   Elasticsearch.Net.ResponseBuilder.SetBody(ApiCallDetails details, RequestData requestData, Stream responseStream, String mimeType) +613
   Elasticsearch.Net.ResponseBuilder.ToResponse(RequestData requestData, Exception ex, Nullable`1 statusCode, IEnumerable`1 warnings, Stream responseStream, String mimeType) +136
   Elasticsearch.Net.HttpWebRequestConnection.Request(RequestData requestData) +708
   Elasticsearch.Net.RequestPipeline.CallElasticsearch(RequestData requestData) +599
   Elasticsearch.Net.Transport`1.Request(HttpMethod method, String path, PostData data, IRequestParameters requestParameters) +634

[UnexpectedElasticsearchClientException: Exception of type 'System.OutOfMemoryException' was thrown.]
   Elasticsearch.Net.Transport`1.Request(HttpMethod method, String path, PostData data, IRequestParameters requestParameters) +1476
   Nest.ElasticClient.Search(ISearchRequest request) +101
   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, String multi) in c:\WEBFARM_MILITARIA\localuser\ftpbarchiesi\App_Code\elastic.cs:943
   catalogo.fillList() in c:\WEBFARM_MILITARIA\localuser\ftpbarchiesi\catalogo.aspx.cs:1017
   catalogo.Page_Load(Object sender, EventArgs e) in c:\WEBFARM_MILITARIA\localuser\ftpbarchiesi\catalogo.aspx.cs:865
   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