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.String.InternalSubString(Int32 startIndex, Int32 length) +28
   System.String.Substring(Int32 startIndex, Int32 length) +66
   MS.Internal.Xml.XPath.XPathScanner.ScanName() +53
   MS.Internal.Xml.XPath.XPathScanner.NextLex() +128
   MS.Internal.Xml.XPath.XPathScanner..ctor(String xpathExpr) +55
   MS.Internal.Xml.XPath.XPathParser.ParseXPathPattern(String xpathPattern) +27
   System.Xml.Xsl.XsltOld.Compiler.AddQuery(String xpathQuery, Boolean allowVar, Boolean allowKey, Boolean isPattern) +171
   System.Xml.Xsl.XsltOld.TemplateAction.CompileAttribute(Compiler compiler) +76
   System.Xml.Xsl.XsltOld.CompiledAction.CompileAttributes(Compiler compiler) +324
   System.Xml.Xsl.XsltOld.TemplateAction.Compile(Compiler compiler) +17
   System.Xml.Xsl.XsltOld.Compiler.CreateTemplateAction() +46
   System.Xml.Xsl.XsltOld.ContainerAction.CompileTopLevelElements(Compiler compiler) +353
   System.Xml.Xsl.XsltOld.ContainerAction.CompileDocument(Compiler compiler, Boolean inInclude) +117
   System.Xml.Xsl.XsltOld.RootAction.Compile(Compiler compiler) +11
   System.Xml.Xsl.XsltOld.Compiler.CreateRootAction() +57
   System.Xml.Xsl.XsltOld.Compiler.Compile(NavigatorInput input, XmlResolver xmlResolver, Evidence evidence) +239

[XsltCompileException: XSLT compile error at (292,17). See InnerException for details.]
   System.Xml.Xsl.XsltOld.Compiler.Compile(NavigatorInput input, XmlResolver xmlResolver, Evidence evidence) +344
   System.Xml.Xsl.XslTransform.Compile(XPathNavigator stylesheet, XmlResolver resolver, Evidence evidence) +116
   System.Xml.Xsl.XslTransform.Load(XPathNavigator stylesheet, XmlResolver resolver) +22
   System.Xml.Xsl.XslTransform.Load(IXPathNavigable stylesheet, XmlResolver resolver) +34
   System.Xml.Xsl.XslTransform.Load(XmlReader stylesheet) +52
   BusinessVisualizzazione.GestioneVisualizzazioneWeb.TrasformaInHtml(Documento documentoSelezionato) in C:\Sandro\LavoriInCorso\XNormeRegioneLombardia\Visualizzazione\GestioneVisualizzazioneWeb.cs:1133
   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