Server Error in '/Normelombardia' 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 1699:        catch (Exception Ex)
Line 1700:        {
Line 1701:            throw;
Line 1702:        }
Line 1703:        return res;

Source File: \\file01\nir$\accessibile\main.aspx.cs    Line: 1701

Stack Trace:


[OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.]
   System.Data.Common.StringStorage.SetCapacity(Int32 capacity) +22
   System.Data.RecordManager.set_RecordCapacity(Int32 value) +83
   System.Data.RecordManager.GrowRecordCapacity() +73
   System.Data.RecordManager.NewRecordBase() +46
   System.Data.DataTable.NewRecordFromArray(Object[] value) +73
   System.Data.DataTable.LoadRow(Object[] values, LoadOption loadOption, Index searchIndex) +608
   System.Data.DataTable.LoadDataRow(Object[] values, LoadOption loadOption) +297
   System.Data.ProviderBase.SchemaMapping.LoadDataRow() +83
   System.Data.Common.DataAdapter.FillLoadDataRow(SchemaMapping mapping) +196
   System.Data.Common.DataAdapter.FillFromReader(DataSet dataset, DataTable datatable, String srcTable, DataReaderContainer dataReader, Int32 startRecord, Int32 maxRecords, DataColumn parentChapterColumn, Object parentChapterValue) +197
   System.Data.Common.DataAdapter.Fill(DataTable[] dataTables, IDataReader dataReader, Int32 startRecord, Int32 maxRecords) +311
   System.Data.Common.LoadAdapter.FillFromReader(DataTable[] dataTables, IDataReader dataReader, Int32 startRecord, Int32 maxRecords) +21
   System.Data.DataTable.Load(IDataReader reader, LoadOption loadOption, FillErrorEventHandler errorHandler) +220
   System.Data.DataTable.Load(IDataReader reader) +16
   accessibile_main.executeSqlAndGetDataTable(String sql) in \\file01\nir$\accessibile\main.aspx.cs:1701
   accessibile_main.getRifPrevigenti(String ids, String filtro) in \\file01\nir$\accessibile\main.aspx.cs:1714
   accessibile_main.visualizzaRiferimenti(String tipo) in \\file01\nir$\accessibile\main.aspx.cs:1776
   accessibile_main.Page_Load(Object sender, EventArgs e) in \\file01\nir$\accessibile\main.aspx.cs:288
   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.6.1055.0