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 1747:
Line 1748:        // Inserisco l'xml del documento in un XmlDocument per utilizzare query xpath
Line 1749:        XmlDocument xDoc = new XmlDocument();
Line 1750:        // Per evitare conflitti con i namespace sostituisco h:class con h_class
Line 1751:        string togliNamespace = docDaVisualizzare.XmlProvvedimento.Replace("h:class", "h_class");

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

Stack Trace:


[OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.]
   System.Xml.NameTable.AddEntry(String str, Int32 hashCode) +29
   System.Xml.NameTable.Add(String key) +124
   System.Xml.XmlDocument..ctor(XmlImplementation imp) +113
   System.Xml.XmlDocument..ctor() +55
   accessibile_main.visualizzaRiferimenti(String tipo) in \\file01\nir$\accessibile\main.aspx.cs:1749
   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