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 881:
Line 882:
Line 883:        var searchResponse = client.Search<Prodotto>(s =>s
Line 884:        .Index("prodotti_"+ sito+ lingua) 
Line 885:        .From(da)

Source File: c:\WEBFARM_MILITARIA\localuser\ftpcapellomio\App_Code\elastic.cs    Line: 883

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) +402
   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) +654
   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) +1493
   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\ftpcapellomio\App_Code\elastic.cs:883
   catalogo.fillList() in c:\WEBFARM_MILITARIA\localuser\ftpcapellomio\catalogo.aspx.cs:1081
   catalogo.Page_Load(Object sender, EventArgs e) in c:\WEBFARM_MILITARIA\localuser\ftpcapellomio\catalogo.aspx.cs:934
   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