When I run my app and bring up a browse dialog... i have a combo box in the search fields criteria that represents locations... when i choose a location from the combo box and then click search is when I get the error...
If i just click search and not choose a location it works fine. I'll include my stack dump just to help out.
The given key was not present in the dictionary. Exception (KeyNotFoundException): Source="mscorlib"; Target=null; Tag=null; Message = "The given key was not present in the dictionary." Environment: ThreadIdentity="" DateTime=["2007-04-23 12:44:25.723"] ThreadName=null WindowsIdentity="STRUSS\MMurphy" ThreadId="11" DemoVersion="True" DomainName="STI.vshost.exe" OSVersion=["Microsoft Windows NT 5.1.2600 Service Pack 2"] MachineName="1LPMMURPHY2" UserName="MMurphy" Remaining Stack Trace -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= at System.ThrowHelper.ThrowKeyNotFoundException() at System.Collections.Generic.Dictionary`2.getItem(TKey key) at MicroFour.StrataFrame.UI.Windows.Forms.BrowseDialogwindow.BuildWhereElement(SearchFieldItem SearchField) at MicroFour.StrataFrame.UI.Windows.Forms.BrowseDialogwindow.BuildWhereElement(Int32 ParameterIndex) at MicroFour.StrataFrame.UI.Windows.Forms.BrowseDialogwindow.BuildSearchWhereClause() at MicroFour.StrataFrame.UI.Windows.Forms.BrowseDialogwindow.Search() at MicroFour.StrataFrame.UI.Windows.Forms.BrowseDialogwindow.ExecuteSearch() at MicroFour.StrataFrame.UI.Windows.Forms.BrowseDialogwindow.tsiSearchClick(Object sender, EventArgs e) at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e) at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e) at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e) at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e) at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met) at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met) at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ScrollableControl.WndProc(Message& m) at System.Windows.Forms.ToolStrip.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)
Hope this helps.
Looking at the code, the only dictionary referenced is the FieldDbTypes dictionary on the dictionary. Check the BO at runtime and make sure that it contains a definition for every field that is contained within the search fields for the browse dialog.