Server Error in '/' Application.

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.

Source Error:


Line 198:            else
Line 199:                throw;
Line 200:        }
Line 201:        finally
Line 202:        {

Source File: d:\Inetpub\WorkoutDump\App_Code\DBAccess.cs    Line: 200

Stack Trace:


[SqlException (0x80131904): Arithmetic overflow error converting expression to data type int.]
   System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +177
   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +127
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +552
   System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +6395
   System.Data.SqlClient.SqlDataReader.HasMoreRows() +389
   System.Data.SqlClient.SqlDataReader.ReadInternal(Boolean setTimeout) +392
   System.Data.SqlClient.SqlDataReader.Read() +43
   System.Data.ProviderBase.DataReaderContainer.Read() +85
   System.Data.Common.DataAdapter.FillLoadDataRow(SchemaMapping mapping) +218
   System.Data.Common.DataAdapter.FillFromReader(DataSet dataset, DataTable datatable, String srcTable, DataReaderContainer dataReader, Int32 startRecord, Int32 maxRecords, DataColumn parentChapterColumn, Object parentChapterValue) +412
   System.Data.Common.DataAdapter.Fill(DataSet dataSet, String srcTable, IDataReader dataReader, Int32 startRecord, Int32 maxRecords) +638
   System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +541
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +489
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet) +277
   DBAccess.ExecuteDataSet() in d:\Inetpub\WorkoutDump\App_Code\DBAccess.cs:200
   DBAccess.ExecuteDataSet(String CommandText) in d:\Inetpub\WorkoutDump\App_Code\DBAccess.cs:228
   WorkoutDumpUser.GetTotals(Int32 UserID) in d:\Inetpub\WorkoutDump\App_Code\WorkoutDumpUser.cs:332
   WDRssFeed.CreateRssFeedFromUserTotals(Int32 feedCode) in d:\Inetpub\WorkoutDump\App_Code\RssFeed.ashx.cs:429
   WDRssFeed.RenderFeed(Stream stream, Int32 feedCode) in d:\Inetpub\WorkoutDump\App_Code\RssFeed.ashx.cs:75
   WDRssFeed.ProcessRequest(HttpContext context) in d:\Inetpub\WorkoutDump\App_Code\RssFeed.ashx.cs:49
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +1217
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +231


Version Information: Microsoft .NET Framework Version:2.0.50727.8974; ASP.NET Version:2.0.50727.8974