Server Error in '/' Application.

Conversion failed when converting the nvarchar value 'san-pham/435_5048/phongthuyvadoisong.com/2381' 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.OleDb.OleDbException: Conversion failed when converting the nvarchar value 'san-pham/435_5048/phongthuyvadoisong.com/2381' to data type int.

Source Error:


Line 259:        fields = " VGSEOTITLE,VGSEOMETADESC,VGSEOMETAKEY,VGNAME,VGDESC ";
Line 260:        order = "";
Line 261:        DataTable dt = Groups.GetGroups(top, fields, condition, order);
Line 262:        if (dt.Rows.Count > 0)
Line 263:        {

Source File: e:\Domain website\phongthuyvadoisong.com\Default.aspx.cs    Line: 261

Stack Trace:


[OleDbException (0x80040e07): Conversion failed when converting the nvarchar value 'san-pham/435_5048/phongthuyvadoisong.com/2381' to data type int.]
   System.Data.OleDb.OleDbDataReader.ProcessResults(OleDbHResult hr) +1601224
   System.Data.OleDb.OleDbDataReader.NextResult() +456
   System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) +319
   System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior behavior) +143
   System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +214
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +180
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet) +126
   TatThanhJsc.Database.SQLDatabase.GetData(OleDbCommand cmd) +425
   TatThanhJsc.Database.Groups.GetGroups(String top, String fields, String condition, String orderby) +604
   _Default.GetCate() in e:\Domain website\phongthuyvadoisong.com\Default.aspx.cs:261
   _Default.GetTtlWebsite() in e:\Domain website\phongthuyvadoisong.com\Default.aspx.cs:158
   _Default.Page_Load(Object sender, EventArgs e) in e:\Domain website\phongthuyvadoisong.com\Default.aspx.cs:52
   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