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 882:        result += "<div class='" + style1 + "'>";
Line 883:
Line 884:        result += "<strong> Data di presentazione </strong><p class=\"info-pasus\">" + Convert.ToDateTime(pdl.data_presentazione).ToShortDateString() + "</p>";
Line 885:        result += "<strong> Iniziativa </strong><p class=\"info-pasus\">" + pdl.tipo_iniziativa.Remove(0, 3) + "</p>";
Line 886:        if (pdl.tipo_iniziativa.Contains("01_"))

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

Stack Trace:


[OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.]
   System.Globalization.CultureData.GetCalendar(Int32 calendarId) +85
   System.Globalization.DateTimeFormatInfo.internalGetDayOfWeekNames() +50
   System.Globalization.DateTimeFormatInfo.get_DayNames() +9
   System.Globalization.DateTimeFormatInfo.get_FormatFlags() +197
   System.__DTString..ctor(String str, DateTimeFormatInfo dtfi) +69
   System.DateTimeParse.TryParse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles, DateTimeResult& result) +304
   System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles) +89
   System.Convert.ToDateTime(String value) +83
   accessibile_main.WritePDL(pdl pdl, Boolean isAbbinamento) in \\file01\nir$\accessibile\main.aspx.cs:884
   accessibile_main.visualizzaDocumentoPDL() in \\file01\nir$\accessibile\main.aspx.cs:837
   accessibile_main.Page_Load(Object sender, EventArgs e) in \\file01\nir$\accessibile\main.aspx.cs:255
   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