Server Error in '/' 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 29:                         str.Append("<url>\r\n");
Line 30:                         str.Append("<loc>" + url.Replace("&", "&amp;") + "</loc>\r\n");
Line 31:                         str.Append("<lastmod>" + DateTime.Now.ToString("yyyy-MM-dd") + "</lastmod>\r\n");
Line 32:                         str.Append("<changefreq>hourly</changefreq>\r\n");
Line 33:                         str.Append("<priority>0.8</priority>\r\n");

Source File: d:\web\jg\JG4\ly10.jgdya.com\szn.aspx.cs    Line: 31

Stack Trace:


[OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.]
   System.Text.StringBuilder.ExpandByABlock(Int32 minBlockCharCount) +180
   System.Text.StringBuilder.Append(Char* value, Int32 valueCount) +86
   System.Text.StringBuilder.AppendHelper(String value) +40
   System.Text.StringBuilder.Append(String value) +220
   szn.Page_Load(Object sender, EventArgs e) in d:\web\jg\JG4\ly10.jgdya.com\szn.aspx.cs:31
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.4108.0