The given key was not present in the dictionary


Author
Message
StarkMike
StarkMike
StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)
Group: Forum Members
Posts: 436, Visits: 944
Any idea as to why I would get this error? I searched the forum and only found one other post and I'm not sure that the previous thread applies to me.
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
This can come from a number of different places...where are you getting it?  It is most likley a BO data source or localization key that is being requested and does not exist in the environment.
StarkMike
StarkMike
StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)
Group: Forum Members
Posts: 436, Visits: 944
It happens when I use a BO as a search field in a browse dialog. Below are a couple of screenshots to help illustrate.

P.S. The second image illustrates a problem with browse dialogs that I mentioned about the DevExpress wrapped one...it appears it is doing the same thing with the StrataFrame one. Not sure if the problem is related.

Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
You are having a serialization issue with your form.  This means that when you make changes the designer does not add all of the designer code.  This can happen under a lot of different circumstances.  If you simply take and create a new SF maintenance form, drop on the browse dialog, and add the search fields, etc.  The form designer will serialize the collections and settings properly.  Without actually getting my hands on your form and project I cannot tell you why your browse dialog settings are not being properly serialized.

The first test would be to create a new form with a new browsedialog to see if all of the settings "stick" then start to work backwards to see what is the catalist in your environment.

StarkMike
StarkMike
StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)
Group: Forum Members
Posts: 436, Visits: 944
OK. thanks, i'll digg in. Hehe Digg in.... get it? Tongue
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
BigGrin hehe...got it.  I know that there is something within your environment that is causing the problem because this is something that is done in high volume...so I would like to figure out what is going on within your project so we can help prevent it in the future!
StarkMike
StarkMike
StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)
Group: Forum Members
Posts: 436, Visits: 944
Ok, so I tried it two different ways and got the same results... a blank List Population Settings screen.

First I created a SF Maintenance form and the only thing I dropped on it was a SF Browse dialog. I set the Search Field to LocationID and then setup the BO using the LocationsBO. I clicked Ok until I was back to the form.... saved it and went back in and the List Population Settings came up blank.

Secondly, I did the same thing with just a standard SF Form... didnt know if there might have been something different between a maintenance form and a standard form.

Hmmm....

StarkMike
StarkMike
StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)
Group: Forum Members
Posts: 436, Visits: 944
Hello?
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
If you create a maintenance form or a standard form you will see that they both inherit MicroFour.StrataFrame.UI.WIndows.Forms.StandardForm.  A MaintenanceForm is just a template with a header and maintence form toolstrip already dropped on the form.

I cannot reproduce your behavior as much as I am really trying to.  If you create a new project, create a BO, drop on a browse dialog, and try to go through the same steps do you get the same results?  Also, are you dropping the browse dialog directly on the form or is this an inherited browse dialog?  Is the browse dialog dropped on a user control?  Last, could you create a simple project that reproduces the behavior so I can test it on this side?  Thanks.

StarkMike
StarkMike
StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)
Group: Forum Members
Posts: 436, Visits: 944
Ok, Here's what I tried. I'm using ver 6.3.3 of DevExpress and ver 1.6 of StrataFrame. I created a blank StrataFrame application...created a BO based on the customers table in the StrataFrame Sample database. I dropped the CustomerBO on the form and dropped the BrowseDialog on the same StrataFrame StandardForm. Then I setup the BrowseDialog and it produced the same results.



I opened this project on two other computers including my own. One of them even had Visual Studio SP 1 installed and we got the same results. On my test computer I uninstalled SF1.6 and re-installed SF1.5 only to discover that this functionality didnt exist in 1.5 Wink



I've attached the project I created.



I am including screenshots that show my version of Visual Studio.



My Visual Studio Version





Visual Studio Version of my collegue


Attachments
BrowseDialogTest.zip (94 views, 1.00 MB)
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