Can anyone shed some light on this error?
System.ArgumentException: {"Key not foundParameter name: key"}
Message:Key not foundParameter name: key
StackTrace: at Infragistics.Shared.KeyedSubObjectsCollectionBase.GetItem(String key) at Infragistics.Win.UltraWinGrid.ColumnsCollection.get_Item(String key) at NBSControls.BondSourcesUsesBase.ugSources_InitializeLayout(Object sender, InitializeLayoutEventArgs e) in C:\Documents and Settings\mhsueh\My Documents\Visual Studio 2005\Projects\DFAST3\Controls\District\BondSourcesUsesBase.vb:line 29
Yes,
Some code in your InitializeLayout event handler is trying to access an object in a collection by a key that does not exist. Probably a column.
That was my first thought, but I have been through the tools multiple times, and compared values in the toolbar customize with values in the <formname>.designer.cs to make sure everything was in sync, and the error still occurs.
Hi Mike,
I am also getting the same problem in Ultratoolbar Manager when I am trying to Merge two toolbars. I replicated the problem in a sample app. Can you please let me know how can I send the app to you or concerned person? Here is the Stack Trace
System.ArgumentException: Key not foundParameter name: key at Infragistics.Shared.KeyedSubObjectsCollectionBase.GetItem(String key) at Infragistics.Win.UltraWinToolbars.ToolsCollectionBase.get_Item(String key) at Infragistics.Win.UltraWinToolbars.ToolBase.InternalSetUnderlyingTool(ToolBase underlyingMdiChildTool) at Infragistics.Win.UltraWinToolbars.ToolsCollectionBase.MergeMdiChildTools(ToolsCollection childToolsCollection) at Infragistics.Win.UltraWinToolbars.RibbonGroup.MergeMdiChildGroup(RibbonGroup childGroup) at Infragistics.Win.UltraWinToolbars.RibbonTab.MergeMdiChildTab(RibbonTab childTab) at Infragistics.Win.UltraWinToolbars.Ribbon.MergeMdiChildTabs(Ribbon childRibbon) at Infragistics.Win.UltraWinToolbars.Ribbon.MergeMdiChild(Ribbon childRibbon) at Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.MergeMdiChild(UltraToolbarsManager childToolbarsManager) at Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.InternalSetActiveMdiChildManager(UltraToolbarsManager newActiveMdiChildManager, Boolean calledFromMdiChildActivate, Boolean remergeIfUnchanged) at Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.OnFormMdiChildActivated(Object sender, EventArgs e) at System.EventHandler.Invoke(Object sender, EventArgs e) at System.Windows.Forms.Form.OnMdiChildActivate(EventArgs e) at System.Windows.Forms.Form.ActivateMdiChildInternal(Form form) at System.Windows.Forms.Form.WmMdiActivate(Message& m) at System.Windows.Forms.Form.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Can this type of issue be published in a KB article?
Found it. Someone had a .LoadFromXML, that got an "encrypted XML string" from the database that over wrote any settings you did in the designer. I commented that line out and things "not go boom". Thanks for pointing me in the right direction. I am going to close that support ticket also.
Did you try searching for the .Load method of UltraToolbarsManager? You could be saving and loading the toolbars to binary, in which case your text search would not have found it.
FYI, I submitted this to support just now. Case Number: CAS-31347-KCMWBU