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 2339:            Visualizzazione.VisualizzaDocumentoIntero(docDaVisualizzare);
Line 2340:        else
Line 2341:            Visualizzazione.VisualizzaDocumento(null, ParteSelezionata, docDaVisualizzare);
Line 2342:
Line 2343:        Visualizzazione.CancellaFileTemporaneo();

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

Stack Trace:


[OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.]
   System.Text.StringBuilder..ctor(String value, Int32 startIndex, Int32 length, Int32 capacity) +90
   System.Text.StringBuilder..ctor(String value, Int32 capacity) +26
   System.Xml.Xsl.XsltOld.BuilderInfo.get_Value() +1735819
   System.Xml.Xsl.XsltOld.SequentialOutput.WriteAttributes(ArrayList list, Int32 count, HtmlElementProps htmlElementsProps) +94
   System.Xml.Xsl.XsltOld.SequentialOutput.WriteStartElement(RecordBuilder record) +294
   System.Xml.Xsl.XsltOld.SequentialOutput.OutputRecord(RecordBuilder record) +55
   System.Xml.Xsl.XsltOld.SequentialOutput.RecordDone(RecordBuilder record) +69
   System.Xml.Xsl.XsltOld.RecordBuilder.CanOutput(Int32 state) +71
   System.Xml.Xsl.XsltOld.RecordBuilder.TextEvent(Int32 state, String text, Boolean disableOutputEscaping) +17
   System.Xml.Xsl.XsltOld.Processor.TextEvent(String text, Boolean disableOutputEscaping) +91
   System.Xml.Xsl.XsltOld.BuiltInRuleTextAction.Execute(Processor processor, ActionFrame frame) +64
   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.GestioneVisualizzazioneDocumento.TrasformaDocumento(Documento documentoSelezionato) in C:\Sandro\LavoriInCorso\XNormeRegioneLombardia\Visualizzazione\GestioneVisualizzazioneDocumento.cs:1587
   BusinessVisualizzazione.BaseVisualizza.NavigaVersoLaParte(Parte parteDocumento, Documento documentoSelezionato, String ancora) in C:\Sandro\LavoriInCorso\XNormeRegioneLombardia\Visualizzazione\BaseVisualizza.cs:363
   BusinessVisualizzazione.GestioneVisualizzazioneDocumento.VisualizzaDocumento(TreeNode tNodoSelezionato, Parte ParteSelezionata, Documento DocumentoSelezionato) in C:\Sandro\LavoriInCorso\XNormeRegioneLombardia\Visualizzazione\GestioneVisualizzazioneDocumento.cs:1954
   accessibile_main.visualizzaParteInterna() in \\file01\nir$\accessibile\main.aspx.cs:2341
   accessibile_main.Page_Load(Object sender, EventArgs e) in \\file01\nir$\accessibile\main.aspx.cs:279
   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