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 3538:            Me.Adapter.SelectCommand.Parameters(0).Value = CType(ID,Integer)
Line 3539:            Dim dataTable As dsRecept.ReceptDataTable = New dsRecept.ReceptDataTable()
Line 3540:            Me.Adapter.Fill(dataTable)
Line 3541:            Return dataTable
Line 3542:        End Function

Source File: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\1e8cf914\7f150322\App_Code.1numznil.15.vb    Line: 3540

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
   dsReceptTableAdapters.ReceptTableAdapter.GetReceptByID(Int32 ID) in C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\1e8cf914\7f150322\App_Code.1numznil.15.vb:3540
   WebControls_wucKijkEensBij.MaakLinks() in C:\RootWebstites\TinamicsCMS\ReceptenEnZo\WebControls\wucKijkEensBij.ascx.vb:25
   WebControls_wucKijkEensBij.set_KijkOokEensBij(String value) in C:\RootWebstites\TinamicsCMS\ReceptenEnZo\WebControls\wucKijkEensBij.ascx.vb:13
   Recepten_Recept.Page_LoadComplete(Object sender, EventArgs e) in C:\RootWebstites\TinamicsCMS\ReceptenEnZo\Recepten\Recept.aspx.vb:12
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Page.OnLoadComplete(EventArgs e) +11859868
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5462


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