Server Error in '/' Application.

Conversion failed when converting the nvarchar value '16%2C25%2C26' 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: Conversion failed when converting the nvarchar value '16%2C25%2C26' to data type int.

Source Error:


Line 513:
Line 514:            DataSet krugvarProds = new DataSet();
Line 515:            int numRowsReturned = myAdapter.Fill(ds);
Line 516:
Line 517:            myConn.Close();

Source File: c:\inetpub\wwwroot\afh.krugerproducts.ca\App_Code\dataLayor\krugerProductsDl.cs    Line: 515

Stack Trace:


[SqlException (0x80131904): Conversion failed when converting the nvarchar value '16%2C25%2C26' to data type int.]
   System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +212
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +245
   System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2843
   System.Data.SqlClient.SqlDataReader.HasMoreRows() +266
   System.Data.SqlClient.SqlDataReader.ReadInternal(Boolean setTimeout) +278
   System.Data.Common.DataAdapter.FillLoadDataRow(SchemaMapping mapping) +198
   System.Data.Common.DataAdapter.FillFromReader(DataSet dataset, DataTable datatable, String srcTable, DataReaderContainer dataReader, Int32 startRecord, Int32 maxRecords, DataColumn parentChapterColumn, Object parentChapterValue) +295
   System.Data.Common.DataAdapter.Fill(DataSet dataSet, String srcTable, IDataReader dataReader, Int32 startRecord, Int32 maxRecords) +676
   System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +317
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +573
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet) +166
   krugDataLayor.krugerProductsDl.getTypesByTypeId(String[] typeIds) in c:\inetpub\wwwroot\afh.krugerproducts.ca\App_Code\dataLayor\krugerProductsDl.cs:515
   webControls_ProductListBreadCrumbs.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\afh.krugerproducts.ca\webControls\ProductListBreadCrumbs.ascx.cs:323
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42
   System.Web.UI.Control.OnLoad(EventArgs e) +132
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428


Version Information: Microsoft .NET Framework Version:2.0.50727.8964; ASP.NET Version:2.0.50727.8962