Server Error in '/' Application.

Value was either too large or too small for an Int16.

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.OverflowException: Value was either too large or too small for an Int16.

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:


[OverflowException: Value was either too large or too small for an Int16.]
   System.Convert.ToInt16(Int32 value) +6270907
   System.Data.Common.Int16Storage.Set(Int32 record, Object value) +131
   System.Data.DataColumn.set_Item(Int32 record, Object value) +50

[ArgumentException: Value was either too large or too small for an Int16.Couldn't store <49413> in canineID Column.  Expected type is Int16.]
   System.Data.DataColumn.set_Item(Int32 record, Object value) +297
   System.Data.DataTable.NewRecordFromArray(Object[] value) +390
   System.Data.DataTable.LoadDataRow(Object[] values, Boolean fAcceptChanges) +119
   System.Data.ProviderBase.SchemaMapping.LoadDataRow() +138
   System.Data.Common.DataAdapter.FillLoadDataRow(SchemaMapping mapping) +139
   System.Data.Common.DataAdapter.FillFromReader(DataSet dataset, DataTable datatable, String srcTable, DataReaderContainer dataReader, Int32 startRecord, Int32 maxRecords, DataColumn parentChapterColumn, Object parentChapterValue) +215
   System.Data.Common.DataAdapter.Fill(DataSet dataSet, String srcTable, IDataReader dataReader, Int32 startRecord, Int32 maxRecords) +552
   System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +303
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +181
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet) +134
   TopK9s2.SelectAStud.GetData() in D:\github\TopK9sRepo\SelectAStud.aspx.vb:39
   TopK9s2.SelectAStud.Page_Load(Object sender, EventArgs e) in D:\github\TopK9sRepo\SelectAStud.aspx.vb:28
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +154
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4082


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