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 2262:        //Versione per Sandro che vuole lo stream HTML: imposta la proprietà
Line 2263:        Visualizzazione.BlockRender = true;
Line 2264:        Visualizzazione.VisualizzaDocumento(null, ParteSelezionata, docDaVisualizzare);
Line 2265:        Visualizzazione.CancellaFileTemporaneo();
Line 2266:        // Recupera il risultato della distribuzione

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

Stack Trace:


[OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.]
   System.Collections.Generic.List`1.set_Capacity(Int32 value) +62
   System.Collections.Generic.List`1.EnsureCapacity(Int32 min) +44
   System.Collections.Generic.List`1.Insert(Int32 index, T item) +40
   MS.Internal.Xml.XPath.Query.Insert(List`1 buffer, XPathNavigator nav) +49
   MS.Internal.Xml.XPath.ParentQuery.Evaluate(XPathNodeIterator context) +77
   MS.Internal.Xml.XPath.BaseAxisQuery.Evaluate(XPathNodeIterator nodeIterator) +38
   MS.Internal.Xml.XPath.ParentQuery.Evaluate(XPathNodeIterator context) +13
   MS.Internal.Xml.XPath.BaseAxisQuery.Evaluate(XPathNodeIterator nodeIterator) +38
   MS.Internal.Xml.XPath.BaseAxisQuery.Evaluate(XPathNodeIterator nodeIterator) +38
   MS.Internal.Xml.XPath.BaseAxisQuery.Evaluate(XPathNodeIterator nodeIterator) +38
   MS.Internal.Xml.XPath.BaseAxisQuery.Evaluate(XPathNodeIterator nodeIterator) +38
   MS.Internal.Xml.XPath.StringFunctions.toString(XPathNodeIterator nodeIterator) +48
   MS.Internal.Xml.XPath.StringFunctions.Evaluate(XPathNodeIterator nodeIterator) +40
   MS.Internal.Xml.XPath.StringFunctions.Substring(XPathNodeIterator nodeIterator) +38
   MS.Internal.Xml.XPath.StringFunctions.Evaluate(XPathNodeIterator nodeIterator) +148
   MS.Internal.Xml.XPath.LogicalExpr.Evaluate(XPathNodeIterator nodeIterator) +28
   MS.Internal.Xml.XPath.BooleanFunctions.toBoolean(XPathNodeIterator nodeIterator) +17
   MS.Internal.Xml.XPath.BooleanFunctions.Evaluate(XPathNodeIterator nodeIterator) +59
   System.Xml.Xsl.XsltOld.Processor.EvaluateBoolean(ActionFrame context, Int32 key) +29
   System.Xml.Xsl.XsltOld.IfAction.Execute(Processor processor, ActionFrame frame) +59
   System.Xml.Xsl.XsltOld.ActionFrame.Execute(Processor processor) +22
   System.Xml.Xsl.XsltOld.Processor.Execute() +61
   System.Xml.Xsl.XsltOld.Processor.Execute(TextWriter writer) +114
   System.Xml.Xsl.XslTransform.Transform(XPathNavigator input, XsltArgumentList args, TextWriter output) +89
   BusinessVisualizzazione.GestioneVisualizzazioneWeb.TrasformaInHtml(Documento documentoSelezionato) in C:\Sandro\LavoriInCorso\XNormeRegioneLombardia\Visualizzazione\GestioneVisualizzazioneWeb.cs:1151
   BusinessVisualizzazione.BaseVisualizza.VisualizzaDocumentoScomposto(Documento documentoSelezionato) in C:\Sandro\LavoriInCorso\XNormeRegioneLombardia\Visualizzazione\BaseVisualizza.cs:161
   BusinessVisualizzazione.GestioneVisualizzazioneDocumento.VisualizzaDocumento(TreeNode tNodoSelezionato, Parte ParteSelezionata, Documento DocumentoSelezionato) in C:\Sandro\LavoriInCorso\XNormeRegioneLombardia\Visualizzazione\GestioneVisualizzazioneDocumento.cs:1949
   accessibile_main.visualizzaSommario() in \\file01\nir$\accessibile\main.aspx.cs:2264
   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