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 54: 
Line 55:         Catch ex As Exception
Line 56:             Throw ex
Line 57:         End Try
Line 58:     End Sub

Source File: d:\WebSites\Cookson\newSite.barrowinferno.co.uk\controls\archivedEventControl.ascx.vb    Line: 56

Stack Trace:


[ConstraintException: Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints.]
   BIWeb.archivedEventControl.getEvents() in d:\WebSites\Cookson\newSite.barrowinferno.co.uk\controls\archivedEventControl.ascx.vb:56
   BIWeb.archivedEventControl.Page_Load(Object sender, EventArgs e) in d:\WebSites\Cookson\newSite.barrowinferno.co.uk\controls\archivedEventControl.ascx.vb:34
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +47
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436


Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433