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 1751:        string togliNamespace = docDaVisualizzare.XmlProvvedimento.Replace("h:class", "h_class");
Line 1752:        //Debug: togliNamespace = togliNamespace.Replace("<nota", "<nota h_class=\"Attiva\"");
Line 1753:        xDoc.LoadXml(togliNamespace);
Line 1754:
Line 1755:        // Carica la classe per la gestione degli urn

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

Stack Trace:


[OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.]
   System.String.CtorCharArrayStartLength(Char[] value, Int32 startIndex, Int32 length) +72
   System.Xml.XmlTextReaderImpl.get_Value() +40
   System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace) +436
   System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc) +20
   System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +129
   System.Xml.XmlDocument.Load(XmlReader reader) +107
   System.Xml.XmlDocument.LoadXml(String xml) +160
   accessibile_main.visualizzaRiferimenti(String tipo) in \\file01\nir$\accessibile\main.aspx.cs:1753
   accessibile_main.Page_Load(Object sender, EventArgs e) in \\file01\nir$\accessibile\main.aspx.cs:291
   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