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 1136:        //Versione per Sandro che vuole lo stream HTML: imposta la proprietà
Line 1137:        Visualizzazione.BlockRender = true;
Line 1138:        Visualizzazione.VisualizzaDocumentoIntero(docDaVisualizzare);
Line 1139:
Line 1140:        Visualizzazione.CancellaFileTemporaneo();

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

Stack Trace:


[OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.]
   System.Collections.Generic.Dictionary`2.Resize(Int32 newSize, Boolean forceNewHashCodes) +27
   System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) +521
   System.Xml.DtdParser.ParseEntityDecl() +475
   System.Xml.DtdParser.ParseSubset() +87
   System.Xml.DtdParser.ParseExternalSubset() +89
   System.Xml.DtdParser.ParseInDocumentDtd(Boolean saveInternalSubset) +291
   System.Xml.DtdParser.Parse(Boolean saveInternalSubset) +60
   System.Xml.DtdParser.System.Xml.IDtdParser.ParseInternalDtd(IDtdParserAdapter adapter, Boolean saveInternalSubset) +24
   System.Xml.XmlTextReaderImpl.ParseDtd() +74
   System.Xml.XmlTextReaderImpl.ParseDoctypeDecl() +498
   System.Xml.XmlTextReaderImpl.ParseDocumentContent() +5480804
   System.Xml.XmlTextReaderImpl.Read() +163
   System.Xml.XPath.XPathDocument.LoadFromReader(XmlReader reader, XmlSpace space) +557
   System.Xml.XPath.XPathDocument..ctor(String uri, XmlSpace space) +110
   System.Xml.XPath.XPathDocument..ctor(String uri) +11
   BusinessVisualizzazione.GestioneVisualizzazioneWeb.TrasformaInHtml(Documento documentoSelezionato) in C:\Sandro\LavoriInCorso\XNormeRegioneLombardia\Visualizzazione\GestioneVisualizzazioneWeb.cs:1136
   BusinessVisualizzazione.GestioneVisualizzazioneDocumento.TrasformaDocumento(Documento documentoSelezionato) in C:\Sandro\LavoriInCorso\XNormeRegioneLombardia\Visualizzazione\GestioneVisualizzazioneDocumento.cs:1587
   BusinessVisualizzazione.GestioneVisualizzazioneWeb.VisualizzaDocumentoIntero(Documento DocumentoSelezionato) in C:\Sandro\LavoriInCorso\XNormeRegioneLombardia\Visualizzazione\GestioneVisualizzazioneWeb.cs:248
   accessibile_main.visualizzaDocumento() in \\file01\nir$\accessibile\main.aspx.cs:1138
   accessibile_main.Page_Load(Object sender, EventArgs e) in \\file01\nir$\accessibile\main.aspx.cs:249
   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