Server Error in '/' Application.

Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints.

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.ConstraintException: Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints.

Source Error:

Line 5886:            Me.Adapter.SelectCommand.Parameters(0).Value = CType(id,Long)
Line 5887:            Dim dataTable As articles.articlesDataTable = New articles.articlesDataTable()
Line 5888:            Me.Adapter.Fill(dataTable)
Line 5889:            Return dataTable
Line 5890:        End Function

Source File: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\6bd3fdfd\7a699ea5\App_Code.vs6y59t2.11.vb    Line: 5888

Stack Trace:

[ConstraintException: Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints.]
   System.Data.DataTable.EnableConstraints() +475
   System.Data.DataTable.set_EnforceConstraints(Boolean value) +45
   System.Data.DataTable.EndLoadData() +199
   System.Data.Common.DataAdapter.FillFromReader(DataSet dataset, DataTable datatable, String srcTable, DataReaderContainer dataReader, Int32 startRecord, Int32 maxRecords, DataColumn parentChapterColumn, Object parentChapterValue) +303
   System.Data.Common.DataAdapter.Fill(DataTable[] dataTables, IDataReader dataReader, Int32 startRecord, Int32 maxRecords) +733
   System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +238
   System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) +453
   System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) +141
   articlesTableAdapters.articlesTableAdapter.GetDataByID(Int64 id) in C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\6bd3fdfd\7a699ea5\App_Code.vs6y59t2.11.vb:5888
   ArticlesBLL.UpdateCounter(Int64 id) in D:\websites\mti\App_Code\BLL\ArticlesBLL.vb:196
   usercontrols_article.updatecounter() in D:\websites\mti\usercontrols\article.ascx.vb:17
   usercontrols_article.Page_Load(Object sender, EventArgs e) in D:\websites\mti\usercontrols\article.ascx.vb:7
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Control.LoadRecursive() +162
   System.Web.UI.Control.LoadRecursive() +162
   System.Web.UI.Control.LoadRecursive() +162
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


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