The given key was not present in the dictionary error


Author
Message
ChanKK
ChanKK
Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)
Group: Forum Members
Posts: 190, Visits: 1.3K
Hi,

I have tested and found new issues.



Testing project



Problems:

1. Takes long time to load when press refresh button or F5

2. The grid view keeps on loading with no end when u clicks any page number of the grid or enters any words in filter row



Beside, for any BO's that using GUID will hit the error as attached



Please advice ASAP.



Thank you
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
Sounds good, Chan.  Thanks. Smile
ChanKK
ChanKK
Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)
Group: Forum Members
Posts: 190, Visits: 1.3K
Hi,

Thank you. I am downloading, will inform you once testing done.

May be you should inform DevExpress about this as well.



Thank you
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
Wow...this is an ironic twist of fate. A while back we made a number of changes to make sure that memory was cleaned up as DevExpress Winform grids would not dispose the enumerator, thus causing a major memory leak. So we added logic to force the grid to clean up after itself and dispose of the internal enumerator objects. This has been largely tested. However, DevExpress didn't follow the same logic on their web grid, thus causing the objects to dispose prematurely.



So we had to alter the way that the WBBS works versus the standard BBS. Ultimately it was a very small change and will not affect any users not using the DevExpress web grid. Just FYI, Infragistcs, Telerik, and the standard GridView all worked. DevExpress is the only one that failed.



So this issue has been resolved and I will put up a temporary build for you here in a bit so you can move forward.
ChanKK
ChanKK
Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)
Group: Forum Members
Posts: 190, Visits: 1.3K
Attached sample project.
ChanKK
ChanKK
Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)
Group: Forum Members
Posts: 190, Visits: 1.3K
Additionally, I am using DevExpress 9.1.4
ChanKK
ChanKK
Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)
Group: Forum Members
Posts: 190, Visits: 1.3K
Hi

I just tried to upgrade my SF 1.6.6.9 to 1.7.0.6. Very unfortunately, I hit the same error as this thread. I have downloaded latest SF source code and the changes is there. I recompile the code and use the compiled dll instead of the one from installer, but same result.



Anything to check?



Thank you
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
Ross,



I am assuming that you are using DevExpress grids or something along those lines. Yes, please download the 1.7.0.1 build as we made a change to prevent any 3rd party control that references the IBindingList interface during or after disposal.
Edhy Rijo
E
StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Ross L. Rooker, Sr. (08/16/2009)
Is there a quick fix for this? or do I need to download 1.7.0.1?




Hi Ross,



I would try 1.7.0.1 first.

Edhy Rijo

Ross L. Rooker, Sr.
Ross L. Rooker, Sr.
StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)
Group: Forum Members
Posts: 153, Visits: 462
Trent, I am also getting this same error on a form that has worked until the upgrade to 1.7.0. There are no third party controls on this form. Just StrataFrame and Grids. One of them has a BBS. Is there a quick fix for this? or do I need to download 1.7.0.1?

The error:

Source     : mscorlib

 

Stack Trace:

   at System.ThrowHelper.ThrowKeyNotFoundException()

   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)

   at MicroFour.StrataFrame.Business.BusinessLayer.get__CurrentDataTable(Boolean IsSharedTable)

   at MicroFour.StrataFrame.Business.BusinessBindingSource.RemoveBOHandlers()

   at MicroFour.StrataFrame.Business.BusinessBindingSource.Dispose(Boolean disposing)

   at System.ComponentModel.Component.Dispose()

   at System.ComponentModel.Container.Dispose(Boolean disposing)

   at System.ComponentModel.Container.Dispose()

   at TrustedVALET.forms.order.frmOrder.Dispose(Boolean disposing) in C:\TrustedVALET\TrustedVALET\forms\order\frmOrder.Designer.cs:line 12

   at System.Windows.Forms.Form.WmClose(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)

 

The error is not very helpful as you can see the 2nd line in the stack trace is:

 

   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)

 

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search