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.Xml.XmlTextReaderImpl.InitStreamInput(Uri baseUri, String baseUriStr, Stream stream, Byte[] bytes, Int32 byteCount, Encoding encoding) +146
   System.Xml.XmlTextReaderImpl.OpenAndPush(Uri uri) +248
   System.Xml.XmlTextReaderImpl.PushExternalEntityOrSubset(String publicId, String systemId, Uri baseUri, String entityName) +172
   System.Xml.XmlTextReaderImpl.PushExternalEntity(IDtdEntityInfo entity) +126
   System.Xml.XmlTextReaderImpl.DtdParserProxy_PushEntity(IDtdEntityInfo entity, Int32& entityId) +57
   System.Xml.DtdParserProxy.System.Xml.IDtdParserAdapter.PushEntity(IDtdEntityInfo entity, Int32& entityId) +18
   System.Xml.DtdParser.HandleEntityReference(XmlQualifiedName entityName, Boolean paramEntity, Boolean inLiteral, Boolean inAttribute) +195
   System.Xml.DtdParser.GetToken(Boolean needWhiteSpace) +385
   System.Xml.DtdParser.ParseSubset() +19
   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.PreparaXmlParte(Parte parteSelezionata, Documento documentoSelezionato) in C:\Sandro\LavoriInCorso\XNormeRegioneLombardia\Visualizzazione\GestioneVisualizzazioneDocumento.cs:1086
   BusinessVisualizzazione.BaseVisualizza.NavigaVersoLaParte(Parte parteDocumento, Documento documentoSelezionato, String ancora) in C:\Sandro\LavoriInCorso\XNormeRegioneLombardia\Visualizzazione\BaseVisualizza.cs:341
   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