StrataFrame Forum

PopulationDataSourceSettings Dialog Not Populating Business Object Types

http://forum.strataframe.net/Topic14630.aspx

By Jared Ewald - 2/29/2008

Hello to all. I am working on a web application that needs to use a StrataFrame dropdownlist control that is populated by a business object. When I click on the "..." button to bring up the dialog for the PopulationDataSourceSettings property, the window does not populate with the list of business object types and thus cannot be used to set the population settings for the dropdownlist. In the same project a couple of days ago, this dialog (and the same one for the ListView control) used to populate with the business object types correctly. Any ideas as to why this no longer works correctly (a setting, missing lines, etc.)?



Thanks!



Jared
By Trent L. Taylor - 2/29/2008

Are you running the 1.6.5 build?
By Jared Ewald - 2/29/2008

I'm running the 1.6.0.0 build.
By Trent L. Taylor - 2/29/2008

The assembly has been left at 1.6.0.0 for quite some time now.  In the 1.6.5 build we now have a version section on the StrataFrame menu so that we can determine the exact version.  Do you know if the last build that was loaded was 1.6.1?  Also, are you running a website or a web application project?  I am trying to reproduce and all is well on this side.  Thanks.
By Jared Ewald - 3/3/2008

The last version loaded on this machine was 1.6.1. The site is setup as a website. The problem seems to be occurring only for one particular website. I tried bringing up the PopulationDataSourceSettings on another site that is configured the same way, and the dialog populates correctly. How does the the dialog read in the business object types and methods? Is there something in the project that could have been deleted to cause it not to find those business object types?



Thanks again for all of your help!



Jared
By StrataFrame Team - 3/3/2008

Is the reference to the DLL containing the business objects referenced through the references section of the web.config file, through the references section of the properties of the web site, or both?
By Jared Ewald - 3/3/2008

Right now, the dll with the business objects is referenced in the references section of the web site properties but not in the web.config file. The site for which this dialog is working is also configured in this way.
By Jared Ewald - 3/6/2008

I'm still having problems with this dialog not populating correctly for this website. I've tried reloading the source code into a different project from source control to no avail--the problem still occurs. Given that the business object dll file is indeed referenced by the project, is there any setting, etc. that would cause it not to find the business object types? Or, could it be a problem with the class library itself?



Thanks again,



Jared
By Trent L. Taylor - 3/6/2008

Jared,

I there any way that you could create a small sample that reproduces your behavior?  I have been trying to reproduce on this side and I am just not able to make this happen.  The sample doesn't have to be robust, just reproduce the problem.  I am sure that it would consist of a website and a BO class library and then a page with a combo that is trying to populate from a BO in the class library.  Though I think I know the components, I just can't get it in a reproducable state.

I have seen things like this before when there have been issues with the StrataFrame database not being updated, but it fails accross the board (Win and Web) and from what you have mentioned, it works on other sites.  I have also seen this when there was a reference issue and the class library could not be properly reflected.

I might do two things if you cannot re-create this.  First, download the 1.6.5 update so that we know that you are running the latest build of SF.  Second, if that doesn't resolve the issue (which I don't think it will), you would be well served to convert your website to a web application project....NET plays much nicer with a web application than a site...ESPECIALLY in regards to references.

One final thought, if you are using source control delete your local instance entirely, then redownload from source control and to a rebuild.  I have also see issues where old assemblies get stuck in the bin or Obj folders that could cause this type of behavior as well.

By Jared Ewald - 3/19/2008

I investigated this a bit more and discovered that it works if I comment out the line. Moreover, the project seems to compile correctly without it. Any ideas as to why this line would cause this dialog not to be able to populate the business object types list? Also, what does this assembly do?



Thanks,



Jared
By Trent L. Taylor - 3/20/2008

What line are you referring to?
By Jared Ewald - 3/20/2008

Sorry--the forum must delete any text in between greater than and less than signs! The line (from web.config) is: add assembly="MicroFour StrataFrame Inherited UI, Version=1.6.0.0, Culture=neutral, PublicKeyToken=99FE9917F71608A7"/.
By Trent L. Taylor - 3/20/2008

Yeah, that is just the DevExpress wrapper, which doesn't need to be there anyway...so that is totally safe.
By Jared Ewald - 3/27/2008

Ok, thanks for the help!



Jared