Server Error in '/' Application.

Arithmetic overflow error converting expression to data type int.
Invalid argument for SET ROWCOUNT. Must be a non-null non-negative integer.
Arithmetic overflow error converting expression to data type int.

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.Data.SqlClient.SqlException: Arithmetic overflow error converting expression to data type int.
Invalid argument for SET ROWCOUNT. Must be a non-null non-negative integer.
Arithmetic overflow error converting expression to data type int.

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:


[SqlException (0x80131904): Arithmetic overflow error converting expression to data type int.
Invalid argument for SET ROWCOUNT. Must be a non-null non-negative integer.
Arithmetic overflow error converting expression to data type int.]
   System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +3331296
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) +334
   System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) +4289
   System.Data.SqlClient.SqlDataReader.TrySetMetaData(_SqlMetaDataSet metaData, Boolean moreInfo) +268
   System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) +3360
   System.Data.SqlClient.SqlDataReader.TryConsumeMetaData() +89
   System.Data.SqlClient.SqlDataReader.get_MetaData() +101
   System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) +624
   System.Data.SqlClient.SqlCommand.CompleteAsyncExecuteReader(Boolean isInternal, Boolean forDescribeParameterEncryption) +237
   System.Data.SqlClient.SqlCommand.InternalEndExecuteReader(IAsyncResult asyncResult, String endMethod, Boolean isInternal) +255
   System.Data.SqlClient.SqlCommand.EndExecuteReaderInternal(IAsyncResult asyncResult) +258
   System.Data.SqlClient.SqlCommand.EndExecuteReaderAsync(IAsyncResult asyncResult) +178
   System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization) +47
   System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +32
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +62
   CommunityServer.Data.<GetPostsAsync>d__10.MoveNext() +1181
   System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +32
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +62
   System.Runtime.CompilerServices.ConfiguredTaskAwaiter.GetResult() +32
   CommunityServer.Discussions.Components.Posts.GetPosts(Int32 postID, Int32 pageIndex, Int32 pageSize, Int32 sortBy, Int32 sortOrder, Boolean includeCategories) +944
   CommunityServer.Discussions.Components.Posts.GetPosts(Int32 postID, Int32 pageIndex, Int32 pageSize, Int32 sortBy, Int32 sortOrder) +78
   CommunityServer.Discussions.Components.Posts.GetPosts(Int32 postID, Int32 pageIndex, Int32 pageSize, ForumPostSortBy sortBy, SortOrder sortOrder) +186
   CommunityServer.Discussions.Components.Posts.GetPosts(ForumPostQuery query) +80
   CommunityServer.Discussions.Controls.ForumPostList.get_DataSource() +1184
   System.Web.UI.WebControls.Repeater.ConnectToDataSourceView() +868
   System.Web.UI.WebControls.Repeater.OnLoad(EventArgs e) +25
   CommunityServer.Controls.PreTemplatedWrappedRepeaterBase.OnLoad(EventArgs e) +52
   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.4494.0