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 218:        SqlDataReader dr_seo = scon_seo.ExecuteReader();
Line 219:        string str1 = "";
Line 220:        if (dr_seo.Read())
Line 221:        {
Line 222:            string EnglishNumbers = "";

Source File: d:\hostingspaces\brandistore.ir\httpdocs\products.aspx.cs    Line: 220

Stack Trace:


[SqlException (0x80131904): Arithmetic overflow error converting expression to data type int.]
   System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +3335264
   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) +4679
   System.Data.SqlClient.SqlDataReader.TryHasMoreRows(Boolean& moreRows) +255
   System.Data.SqlClient.SqlDataReader.TryReadInternal(Boolean setTimeout, Boolean& more) +298
   System.Data.SqlClient.SqlDataReader.Read() +43
   products.price(String dt) in d:\hostingspaces\brandistore.ir\httpdocs\products.aspx.cs:220
   ASP.products_aspx.__DataBind__control66(Object sender, EventArgs e) in d:\hostingspaces\brandistore.ir\httpdocs\products.aspx:848
   System.Web.UI.Control.OnDataBinding(EventArgs e) +100
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +178
   System.Web.UI.Control.DataBindChildren() +248
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +195
   System.Web.UI.WebControls.ListView.CreateItemsWithoutGroups(ListViewPagedDataSource dataSource, Boolean dataBinding, InsertItemPosition insertPosition, ArrayList keyArray) +1188
   System.Web.UI.WebControls.ListView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) +1284
   System.Web.UI.WebControls.ListView.PerformDataBinding(IEnumerable data) +53
   System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +208
   System.Web.UI.WebControls.ListView.PerformSelect() +128
   products.pproducts() in d:\hostingspaces\brandistore.ir\httpdocs\products.aspx.cs:527
   products.Page_Load(Object sender, EventArgs e) in d:\hostingspaces\brandistore.ir\httpdocs\products.aspx.cs:131
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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