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.Xml.NameTable.AddEntry(String str, Int32 hashCode) +29
   System.Xml.NameTable.Add(Char[] key, Int32 start, Int32 len) +230
   System.Xml.DtdParser.GetNameQualified(Boolean canHavePrefix) +54
   System.Xml.DtdParser.ParseEntityDecl() +84
   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.XmlLoader.LoadDocSequence(XmlDocument parentDoc) +48
   System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +129
   System.Xml.XmlDocument.Load(XmlReader reader) +107
   System.Xml.XmlDocument.Load(String filename) +122
   BusinessVisualizzazione.GestioneVisualizzazioneDocumento.SistemaLinkTable(DataTable tabellaLinks) in C:\Sandro\LavoriInCorso\XNormeRegioneLombardia\Visualizzazione\GestioneVisualizzazioneDocumento.cs:1301
   BusinessVisualizzazione.GestioneVisualizzazioneDocumento.SistemaLink(Parte parteSelezionata) in C:\Sandro\LavoriInCorso\XNormeRegioneLombardia\Visualizzazione\GestioneVisualizzazioneDocumento.cs:1211
   BusinessVisualizzazione.GestioneVisualizzazioneDocumento.CreaXmlPerSommario(DataTable dtSommarioHtml, String testataDocumento, Documento DocumentoSelezionato) in C:\Sandro\LavoriInCorso\XNormeRegioneLombardia\Visualizzazione\GestioneVisualizzazioneDocumento.cs:256
   BusinessVisualizzazione.BaseVisualizza.VisualizzaDocumentoScomposto(Documento documentoSelezionato) in C:\Sandro\LavoriInCorso\XNormeRegioneLombardia\Visualizzazione\BaseVisualizza.cs:153
   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