Fabian R Silva, - (10/21/2008)
I installed VS2008, DevExpress 8.2.4, Strataframe 1.6.6 and modified intherited ui from source to allow strataframe devex custom controls to work. It's a clean XP Pro machine
I opened the sample, converted it to 2008 (stay it on 2.0) and comment the line in web.config about authentication (it on vs2008 appears to give me an error) and then build, test to open the WebBindingSource.ASPX page, and change the WBBS BusinessObjectName property, it give me te error.
I will try to make a little page with only 1 BO (witout a class) and a windows grid and see if it works, I not sure what more I can try.I created a new strataframe web project and run it as is and it give me a error on default.aspx that cannot find something....I deleted the default.aspx page and created a "test.aspx" page, run it and it run ok (blank page for now).
* I added a class "Business1" BO mapped to Customers (SF Sample db)
* On global.asax put the correct connectionstring to the SF sample db (same that use the BOM)
* Drop a grid and a WBBS on test.aspx
* on ApplicationBasePage put a definition to "Business1" BO
- Friend WithEvents Customers1 As BusinessObject1
* build the project
* close and open it again
* open test.aspx
* If I try to set the WBBS1 BusinessObjectName property, it show only "(None)" but it not crash like the sample before mentioned
then I created a business object library project and reference it on the web project, move businessobject1 to this BO project, and change the reference to this bo on ApplicationBasePage.
Build again, try to see on test WBBS1 and still show only "(none)"
try to close/ open / rebuild and see if it show "Customers1" on the list but nothing... Customers1 not appears....
I try on the load of test.aspx to put
Customers1.FillDataTable("select * from " & customers1.TableName)
and it say that null object reference, then I changed on ApplicationBasePage the line
'Friend WithEvents Customers1 As BusinessObjectLibrary1.BusinessObject1
'To
Private fCustomers1 As New BusinessObjectLibrary1.BusinessObject1
Public Property Customers1() As BusinessObjectLibrary1.BusinessObject1
Get
Return fCustomers1
End Get
Set(ByVal value As BusinessObjectLibrary1.BusinessObject1)
fCustomers1 = value
End Set
End Property
and then run the project, It again show a blank page... but when I stop the debug and go to designer it show the Customers1 BO
I not sure why the web example doesn't work. I try to delete the commonbussiness project, created a new one and put a BO on it and when I build the web project, it give a error that cannot find the NewBOLibrary.NewBO ( the type xxxx is not defined)
I not sure why it fails, Ican make it work on a basic new web project and try to edit the web sample and cannot make it work, I will try to make a new project and pass my web pages to it and see if I can create new BO with same logic that the project that doesn't work and see what happen.
If someone have the same problem before and can solution it please tell me what another thing i can do
thanks for all the support.
pd: I see that I put "Friend withevents" and it have to be "public" to work, I opened the test web project, put a 2nd reference to same customers (businessobject1) bo, with a public withevents TestBO as BusinessObject1 and it appears too... I confused on why it works on this simple project but not on the sample or my project.
pd2: I try to send the example that I created, but a error ocurrs when I try to edit attachments (its a rar file)