Cannot add constraint to DataTable 'ToolBarSet' which is a child table in two nested relations.

Nov 21, 2010 at 10:17 PM

When setting ToolBarMode to "Basic", ASP.NET returns a "Cannot add constraint to DataTable 'ToolBarSet' which is a child table in two nested relations" error.

Stack Trace:

[ArgumentException: Cannot add constraint to DataTable 'ToolBarSet' which is a child table in two nested relations.]
   System.Data.ConstraintCollection.Add(Constraint constraint, Boolean addUniqueWhenAddingForeign) +1923447
   System.Data.ConstraintCollection.Add(Constraint constraint, Boolean addUniqueWhenAddingForeign) +435
   System.Data.DataSetRelationCollection.AddCore(DataRelation relation) +947
   System.Data.DataRelationCollection.Add(DataRelation relation) +169
   Typps.Editor.SetToolBarDefaults() +1270
   Typps.Editor.CreateChildControls() +170
   System.Web.UI.Control.EnsureChildControls() +102
   Typps.Editor.get_IsCallback() +112
   Typps.Editor.OnUnload(EventArgs e) +123
   System.Web.UI.Control.UnloadRecursive(Boolean dispose) +241
   System.Web.UI.Control.UnloadRecursive(Boolean dispose) +175
   System.Web.UI.Control.UnloadRecursive(Boolean dispose) +175
   System.Web.UI.Control.UnloadRecursive(Boolean dispose) +175
   System.Web.UI.Control.UnloadRecursive(Boolean dispose) +175
   System.Web.UI.Control.UnloadRecursive(Boolean dispose) +175
   System.Web.UI.Control.UnloadRecursive(Boolean dispose) +175
   System.Web.UI.Page.UnloadRecursive(Boolean dispose) +23
   System.Web.UI.Page.ProcessRequestCleanup() +43
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +253
   System.Web.UI.Page.ProcessRequest() +78
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
   System.Web.UI.Page.ProcessRequest(HttpContext context) +49
   ASP.user_poetry_aspx.ProcessRequest(HttpContext context) +37
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +100
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75


Using Typps 2.7 with .NET Framework 4.0 as targetFramework.

Coordinator
Nov 22, 2010 at 2:14 AM

Hello, it's a bug. I have fixed it now. I'll push an update later today and let you know when it's ready.

Thanks for reporting, have a good day,

Alessandro

Coordinator
Nov 22, 2010 at 11:13 AM

Hello, a new release (Typps 2.8) is ready that fixes this bug you reported.

You may see a live preview here : http://demo.typps.com/Editor/basic.aspx

Alessandro

 

Nov 22, 2010 at 11:16 AM

Fantastic! I'll try it out as soon as possible.

Thanks for the quick response! Typps is such a great tool, and getting beter after each iteration :-)