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 250:                    if (Count <= dsPattern.Tables[0].Rows.Count - 1)
Line 251:                    {
Line 252:                        ContentPattern += "        <td align=\"center\">";
Line 253:                        if (dsPattern.Tables[0].Rows[Count]["PatternFileName"].ToString() != "")
Line 254:                        {

Source File: e:\Web Sites\gisilklamphun.go.th\src\web\SilkShopDetail.aspx.cs    Line: 252

Stack Trace:


[OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.]
   System.String.Concat(String str0, String str1) +123
   src_web_SilkShopDetail.InitialPage(String SilkCompanyID) in e:\Web Sites\gisilklamphun.go.th\src\web\SilkShopDetail.aspx.cs:252
   src_web_SilkShopDetail.Page_Load(Object sender, EventArgs e) in e:\Web Sites\gisilklamphun.go.th\src\web\SilkShopDetail.aspx.cs:37
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +91
   System.Web.UI.Control.LoadRecursive() +74
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207


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