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 59:             for (int i = 1; i <= 5; i++)
Line 60:             {
Line 61:                 if (odr["ppic" + i].ToString() != "" && odr["pthumb" + i].ToString() != "")
Line 62:                 {
Line 63:                     lt_ppic.Append("<div class=\"swiper-slide\"><a class=\"relplants\" rel=\"lightbox[plants]\" href=\"/images/products/" + odr["ppic" + i].ToString() + "\"></a><a class=\"reltarget\" target=\"_blank\" href=\"/images/products/" + odr["ppic" + i].ToString() + "\"></a><img src=\"/images/products/" + odr["ppic" + i].ToString() + "\" alt=\"" + odr["pname"].ToString() + "\"></div>");

Source File: c:\webhosting\data\index\picshow.aspx.cs    Line: 61

Stack Trace:


[OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.]
   System.Data.SqlClient.TdsParser.TryReadPlpUnicodeChars(Char[]& buff, Int32 offst, Int32 len, TdsParserStateObject stateObj, Int32& totalCharsRead) +118
   System.Data.SqlClient.TdsParser.TryReadSqlStringValue(SqlBuffer value, Byte type, Int32 length, Encoding encoding, Boolean isPlp, TdsParserStateObject stateObj) +227
   System.Data.SqlClient.TdsParser.TryReadSqlValue(SqlBuffer value, SqlMetaDataPriv md, Int32 length, TdsParserStateObject stateObj, SqlCommandColumnEncryptionSetting columnEncryptionOverride, String columnName) +533
   System.Data.SqlClient.SqlDataReader.TryReadColumnInternal(Int32 i, Boolean readHeaderOnly) +674
   System.Data.SqlClient.SqlDataReader.TryReadColumn(Int32 i, Boolean setTimeout, Boolean allowPartiallyReadColumn) +144
   System.Data.SqlClient.SqlDataReader.GetValueInternal(Int32 i) +32
   System.Data.SqlClient.SqlDataReader.GetValue(Int32 i) +76
   System.Data.SqlClient.SqlDataReader.get_Item(String name) +28
   index_picshow.BindData() in c:\webhosting\data\index\picshow.aspx.cs:61
   index_picshow.Page_Load(Object sender, EventArgs e) in c:\webhosting\data\index\picshow.aspx.cs:25
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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