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 1141:            }
Line 1142:            DataSetSpecialization.Tbl_SpecializationDataTable dataTable = new DataSetSpecialization.Tbl_SpecializationDataTable();
Line 1143:            this.Adapter.Fill(dataTable);
Line 1144:            return dataTable;
Line 1145:        }

Source File: d:\Inetpub\vhosts\basharweb.com\tmp\root\e05550ca\cc1300f0\App_Code.db8ee_ry.4.cs    Line: 1143

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
   DataSetSpecializationTableAdapters.Tbl_SpecializationTableAdapter.GetDataByUni(Nullable`1 Fld_UniId) in d:\Inetpub\vhosts\basharweb.com\tmp\root\e05550ca\cc1300f0\App_Code.db8ee_ry.4.cs:1143
   SubPage.Page_Load(Object sender, EventArgs e) in d:\Inetpub\vhosts\basharweb.com\alhuda-edu.com\CountryUniversityAr.aspx.cs:18
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


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