Business Object in Web Application


Author
Message
Hugo R. Figueroa
Hugo R. Figueroa
StrataFrame User (243 reputation)StrataFrame User (243 reputation)StrataFrame User (243 reputation)StrataFrame User (243 reputation)StrataFrame User (243 reputation)StrataFrame User (243 reputation)StrataFrame User (243 reputation)StrataFrame User (243 reputation)StrataFrame User (243 reputation)
Group: StrataFrame Users
Posts: 81, Visits: 3.1K
I have a solution with 3 projects:

1)  winform application project

2) webform application project

3) business object project

I am making maintenance forms for projects 1 & 2 using the business objects in project 3.

everything is ok, but when trying to set the bindingfield for the textboxes in one webform I get this message:

"The selected business object name doeas not appear to be valid. The fields could not be enumerated"

I can select the business object by means of the BusinessObjectName Property and I used the same object succesfully in the winform counterpart, and certainly haven't had problems with other business objects.

I have deleted the business object, created and configured it again, built and rebuilt all the projects, have shutdown visual studio and the computer. but still the same.

Please somebody can tell me what can be wrong?

Thanks

Replies
Hugo R. Figueroa
Hugo R. Figueroa
StrataFrame User (243 reputation)StrataFrame User (243 reputation)StrataFrame User (243 reputation)StrataFrame User (243 reputation)StrataFrame User (243 reputation)StrataFrame User (243 reputation)StrataFrame User (243 reputation)StrataFrame User (243 reputation)StrataFrame User (243 reputation)
Group: StrataFrame Users
Posts: 81, Visits: 3.1K
The help says:

Multiple ApplicationBasePage Classes

As a whole, a StrataFrame ASP.NET application may use hundreds of different business objects, while each page needs 10 or less. Rather than requiring you to declare of the business objects for the entire application on the same ApplicationBasePage, you can create separate ApplicationBasePage classes. The webforms within the application can then inherit from the ApplicationBasePage that contains only the business objects it needs.

But if I put the business objects references in another ApplicatioBasePage I get the error mentioned at the beginning of this topic.

StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
When you placed the business objects in another base page class, did you change the inherits of your web form to reference the new base page, or does it still reference the original ApplicationBasePage?  You'll need to change the inherits to subclass the new ApplicationBasePage and build the project before the type editor will work.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Hugo R. Figueroa - 18 Years Ago
Guillermo Vilas - 18 Years Ago
     yes, I did it.
Hugo R. Figueroa - 18 Years Ago
Hugo R. Figueroa - 18 Years Ago
Hugo R. Figueroa - 18 Years Ago
StrataFrame Team - 18 Years Ago
Hugo R. Figueroa - 18 Years Ago
Hugo R. Figueroa - 18 Years Ago
StrataFrame Team - 18 Years Ago
Hugo R. Figueroa - 18 Years Ago
StrataFrame Team - 18 Years Ago
Ben Hayat - 18 Years Ago
Hugo R. Figueroa - 18 Years Ago
Hugo R. Figueroa - 18 Years Ago
Hugo R. Figueroa - 18 Years Ago
StrataFrame Team - 18 Years Ago
Hugo R. Figueroa - 18 Years Ago
Ivan George Borges - 18 Years Ago
StrataFrame Team - 18 Years Ago
Jason Stevenson - 18 Years Ago
StrataFrame Team - 18 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search