Exception viewer in 5.9.1 shows the below error when a 'Sync Relational Model Data' is performed on a SQL Database after I suspect changing the primary key on a table. Reopening the designer and reloading the project resolved the problem, but lost whatever caused the exception.
I have experienced this twice in 5.9.0, so I'd suggest fiddling with existing indexes and PK's on a table is required to find how to reproduce it.
Cheers,
Jason
Exception information.
=============================================================
LLBLGen Pro version: v5.9. Build: 5.9.0
Exception details:
=====================
Message: The given key was not present in the dictionary.
Source: mscorlib
Stack trace:
at System.ThrowHelper.ThrowKeyNotFoundException()
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at SD.LLBLGen.Pro.Gui.Controls.CatalogExplorer.PerformHighlightNodesOfElements(List`1 targetsToHighlight)
at SD.LLBLGen.Pro.Gui.Controls.ProjectExplorer.HighlightMappedTargetsOfSelectedElements[T](IEnumerable`1 selectedElements)
at SD.LLBLGen.Pro.Gui.Controls.ProjectExplorer.HighlightRelatedElementsOfEntities(List`1 selectedEntityTags)
at SD.LLBLGen.Pro.Gui.Controls.ProjectExplorer.HighlightNodesRelativeElementsOfSelectedNodes()
at DevExpress.XtraTreeList.TreeList.RaiseSelectionChanged()
at DevExpress.XtraTreeList.TreeList.OnSelectionChanged()
at SD.LLBLGen.Pro.Gui.Controls.BetterTreeList.OnSelectionChanged()
at SD.LLBLGen.Pro.Gui.Controls.ProjectExplorer.ApplyCachedStatesToNode(TreeListNode currentNode)
at SD.LLBLGen.Pro.Gui.Controls.ProjectExplorer.ApplyCachedStatesToNode(TreeListNode currentNode)
at SD.LLBLGen.Pro.Gui.Controls.ProjectExplorer.ApplyCachedStatesToNode(TreeListNode currentNode)
at SD.LLBLGen.Pro.Gui.Controls.ProjectExplorer.ApplyCachedStatesToNode(TreeListNode currentNode)
at SD.LLBLGen.Pro.Gui.Controls.ProjectExplorer.ApplyCachedStatesToNode(TreeListNode currentNode)
at SD.LLBLGen.Pro.Gui.Controls.ProjectExplorer.VisualizeProject(Boolean afterLoad)
at SD.LLBLGen.Pro.Gui.Controls.MainWindow.PerformPostMetaDataRefreshActions()
at SD.LLBLGen.Pro.Gui.Classes.GuiController.PerformSyncTasks(List`1 tasksToPerform)
at SD.LLBLGen.Pro.Gui.Controls.MdiTabs.SyncRelationalModelDataTab.PerformTasks()
at System.Windows.Forms.Control.OnClick(EventArgs e)
at DevExpress.XtraEditors.BaseButton.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at DevExpress.Utils.Controls.ControlBase.BaseWndProc(Message& m)
at DevExpress.XtraEditors.BaseControl.WndProc(Message& msg)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Inner exception: <null>