Business Object Types not listed when Configuring CSLA DatasourceBusiness Object Types not listed when Configuring CSLA Datasource
Old forum URL: forums.lhotka.net/forums/t/4983.aspx
PDC posted on Tuesday, June 17, 2008
I've come across a problem in a project that I've been working on in my spare time for a couple of years now.
When I choose Configure Datasource from the CSLA Datasource task menu, the resulting Configure CSLA Datasource dialog box no longer shows my business objects in the drop down. This means that my GridView can't bind to the object at design time, making it tedious to set up gridviews.
Even if I manually provide the business object type, the GridView still will not pick up the fields at design time.
This is a relatively new problem
I'm using v3.5 of CSLA, within VS2008, on a .NET 3.5 project.
The project did start out using CSLA v2.0 in a .NET 2.0 project.
Any ideas why my business objects are not showing?
Will
RockfordLhotka replied on Tuesday, June 17, 2008
Sometimes Visual Studio gets confused - gets some corruption in the temp folders, etc. You may try flushing the various caches - the obj and bin folders, and the temporary VS web folders.robertoConzentra replied on Thursday, March 05, 2009
i have the same problem, but it's not connected to a csla datasource, is connected with all datasources.. simply they cannot see csla inheritated object.
the curios think is that if you put a normal object data source you can find the base csla class and bind them, but still you cannot see your business library!
robertoConzentra replied on Friday, March 06, 2009
just one explication, if i delete obj directory object datasource see the csla objects, but still csladatasource don't work. i think is a problem of vs2008 designer with assembies referenced, but i don't find the problem till now.
ajj3085 replied on Sunday, March 08, 2009
It might be your business assembly is exposing a type from an assembly not referenced by the UI project. I've had this happen when my business layer was inadvertently exposing my data assembly.. and the UI had no reference to the data layer. Once I resolved this, VS behaved normally.
robertoConzentra replied on Monday, March 09, 2009
No, i already think that was a problem of references, but is not.
I try with Csla sample, and the problem persist with example of Lhotka too, if a open a page the csla datasource is not showing the b.o., is showing nothing! i'm relative sure that lhotka knows how make examples of his product.
it seems to be a bug in Vs2008 designer (if i run the examples of my code it's work perfectly, it's only a problem of design!).. not all the developers workstation do it, only the last updated.. i think is a problem of some environments, the problem is that is not so simple to understand what was wrong, and i can't update nothing untill i find the problem, those installation have many ides (blend expression, sql2008, many plug-ins and others..), perhaps is a problem doo to this.
i will post the solution if i find what is wrong in those developers workstations
thanks
Copyright (c) Marimer LLC