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.Runtime.CompilerServices.RuntimeHelpers._CompileMethod(IRuntimeMethodInfo method) +0
   System.Reflection.Emit.DynamicMethod.CreateDelegate(Type delegateType) +14262195
   System.Data.Linq.SqlClient.ObjectReaderCompiler.Compile(SqlExpression expression, Type elementType) +789
   System.Data.Linq.SqlClient.SqlProvider.GetReaderFactory(SqlNode node, Type elemType) +132
   System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query) +398
   System.Data.Linq.DataQuery`1.System.Collections.Generic.IEnumerable<T>.GetEnumerator() +55
   System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) +430
   System.Linq.Enumerable.ToList(IEnumerable`1 source) +73
   System.Data.Linq.Provider.BindingList.Create(DataContext context, IEnumerable`1 sequence) +114
   System.Data.Linq.DataQuery`1.System.ComponentModel.IListSource.GetList() +24
   System.Web.UI.DataSourceHelper.GetResolvedDataSource(Object dataSource, String dataMember) +11611083
   System.Web.UI.WebControls.ReadOnlyDataSource.System.Web.UI.IDataSource.GetView(String viewName) +55
   System.Web.UI.WebControls.DataBoundControl.ConnectToDataSourceView() +212
   System.Web.UI.WebControls.DataBoundControl.GetData() +11
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +114
   System.Web.UI.WebControls.ListView.PerformSelect() +128
   WebPartMainProductList.main.BindProducts(IQueryable`1 iQueryable, Int32 CurrentPage, Int32 PageSize, Int32& TotalRows) in C:\Programming\PintorProject.Platform\WebParts\WebPartMainProductList\main.ascx.cs:844
   WebPartMainProductList.main.OnLoad(EventArgs e) in C:\Programming\PintorProject.Platform\WebParts\WebPartMainProductList\main.ascx.cs:499
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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