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 2329:        int lungids = idsCurr.StartsWith("r") && idsCurr.Contains("NaN") ? 15 : 17;
Line 2330:        docDaVisualizzare.LoadFromIds(idsCurr.Substring(0, lungids), numeroProdotto);
Line 2331:        Business.Parte ParteSelezionata = new Business.Parte(idparte, 0);
Line 2332:
Line 2333:        //Crea l'oggetto visualizzazione web per la trasformazione dell'xml in html

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

Stack Trace:


[OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.]
   System.Globalization.CultureInfo.get_NumberFormat() +28
   System.Globalization.NumberFormatInfo.GetInstance(IFormatProvider formatProvider) +91
   System.Convert.ToInt32(String value) +36
   DAC.FactoryDac.GetDAC() +21
   Business.Parte..ctor(String idParte, Int32 IdProdotto) +80
   accessibile_main.visualizzaParteInterna() in \\file01\nir$\accessibile\main.aspx.cs:2331
   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