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:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.]
   System.Data.SqlClient.TdsParserStateObject.TryReadPlpBytes(Byte[]& buff, Int32 offst, Int32 len, Int32& totalBytesRead) +131
   System.Data.SqlClient.TdsParser.TryReadSqlValue(SqlBuffer value, SqlMetaDataPriv md, Int32 length, TdsParserStateObject stateObj, SqlCommandColumnEncryptionSetting columnEncryptionOverride, String columnName) +275
   System.Data.SqlClient.SqlDataReader.TryReadColumnData() +118
   System.Data.SqlClient.SqlDataReader.TryReadColumnInternal(Int32 i, Boolean readHeaderOnly) +60
   System.Data.SqlClient.SqlDataReader.TryReadColumn(Int32 i, Boolean setTimeout, Boolean allowPartiallyReadColumn) +139
   System.Data.SqlClient.SqlDataReader.GetValueInternal(Int32 i) +31
   System.Data.SqlClient.SqlDataReader.GetValue(Int32 i) +73
   lambda_method(Closure , Shaper ) +247
   System.Data.Common.Internal.Materialization.Shaper.HandleEntityAppendOnly(Func`2 constructEntityDelegate, EntityKey entityKey, EntitySet entitySet) +124
   lambda_method(Closure , Shaper ) +198
   System.Data.Common.Internal.Materialization.Coordinator`1.ReadNextElement(Shaper shaper) +168
   System.Data.Common.Internal.Materialization.SimpleEnumerator.MoveNext() +97
   System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) +387
   System.Linq.Enumerable.ToList(IEnumerable`1 source) +58
   System.Web.UI.Control.DataBindChildren() +185
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +160
   System.Web.UI.Control.DataBind() +17
   System.Web.UI.WebControls.DataList.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +136
   System.Web.UI.WebControls.DataList.CreateControlHierarchy(Boolean useDataSource) +647
   System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e) +64
   System.Web.UI.WebControls.BaseDataList.DataBind() +81
   Web.Templates.Categories.ProductsInGrid.BindData() +4599
   Web.Templates.Categories.ProductsInGrid.Page_Init(Object sender, EventArgs e) +91
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnInit(EventArgs e) +95
   System.Web.UI.UserControl.OnInit(EventArgs e) +83
   Web.Templates.Categories.ProductsInGrid.OnInit(EventArgs e) +12
   System.Web.UI.Control.InitRecursive(Control namingContainer) +139
   System.Web.UI.Control.AddedControl(Control control, Int32 index) +185
   System.Web.UI.ControlCollection.Add(Control child) +86
   Web.CategoryPage.CreateChildControlsTree() +151
   Web.CategoryPage.OnInit(EventArgs e) +20
   System.Web.UI.Control.InitRecursive(Control namingContainer) +139
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +408


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