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 318:        newnodo.idNodo = _idnodo;
Line 319:        // Memorizzo il nodo
Line 320:        nodi.Add(newnodo);
Line 321:        return newnodo;
Line 322:    }

Source File: \\file01\nir$\App_Code\TreeViewAccessibile.cs    Line: 320

Stack Trace:


[OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.]
   System.Collections.ArrayList.set_Capacity(Int32 value) +48
   System.Collections.ArrayList.EnsureCapacity(Int32 min) +51
   System.Collections.ArrayList.Add(Object value) +59
   NodoAccessibile.addNodo(Boolean _isLeaf, String _idnodo) in \\file01\nir$\App_Code\TreeViewAccessibile.cs:320
   accessibile_main.caricaDatiperAlbero() in \\file01\nir$\accessibile\main.aspx.cs:4080
   accessibile_main.visualizzaSommario() in \\file01\nir$\accessibile\main.aspx.cs:2242
   accessibile_main.Page_Load(Object sender, EventArgs e) in \\file01\nir$\accessibile\main.aspx.cs:273
   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