Server Error in '/forum' 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.TreePage..ctor(Int32 size) +29
   System.Data.RBTree`1.AllocPage(Int32 size) +62
   System.Data.RBTree`1.GetNewNode(K key) +5043518
   System.Data.Index.InitRecords(IFilter filter) +322
   System.Data.Index..ctor(DataTable table, Int32[] ndexDesc, IndexField[] indexFields, Comparison`1 comparison, DataViewRowState recordStates, IFilter rowFilter) +455
   System.Data.DataTable.GetIndex(IndexField[] indexDesc, DataViewRowState recordStates, IFilter rowFilter) +228
   System.Data.DataView.UpdateIndex(Boolean force, Boolean fireEvent) +165
   System.Data.DataView.UpdateIndex(Boolean force) +12
   System.Data.DataView.SetIndex2(String newSort, DataViewRowState newRowStates, IFilter newRowFilter, Boolean fireEvent) +113
   System.Data.DataView.SetIndex(String newSort, DataViewRowState newRowStates, IFilter newRowFilter) +17
   System.Data.DataView.SetDataViewManager(DataViewManager dataViewManager) +185
   System.Data.DataViewManager.CreateDataView(DataTable table) +72
   System.Data.DataTable.get_DefaultView() +41
   aspnetforum.messages.BindMessagesRepeater(Int32 topicId, DbConnection cn, Repeater rptMessagesList, Boolean isModerator, Boolean sortDesc, HttpRequest request, Int32 pageSize, String& pagerString) +883
   aspnetforum.messages.Page_Load(Object sender, EventArgs e) +1801
   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