Business Object not found on page.


Author
Message
gavin.dell
gavin.dell
StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)
Group: Forum Members
Posts: 6, Visits: 44
Hi all,



I am having a problem using the GridView component and the WebBusinessBindingSource. When I click update or cancel on the grid, I get the message: The business object 'Customers' could not be found on this page.





[InvalidOperationException: The business object 'Customers' could not be found on this page.]

MicroFour.StrataFrame.UI.Web.BasePage.GetBusinessObject(String Name) +150

MicroFour.StrataFrame.UI.Web.WebBusinessBindingSource.GetBusinessObject() +109

MicroFour.StrataFrame.UI.Web.WebBusinessBindingSource.GetView(String viewName) +51

System.Web.UI.DataSourceControl.System.Web.UI.IDataSource.GetView(String viewName) +7

System.Web.UI.WebControls.DataBoundControl.ConnectToDataSourceView() +226

System.Web.UI.WebControls.DataBoundControl.GetData() +4

System.Web.UI.WebControls.DataBoundControl.PerformSelect() +57

System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +70

System.Web.UI.WebControls.GridView.DataBind() +4

System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82

System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +69

System.Web.UI.Control.EnsureChildControls() +87

System.Web.UI.Control.FindControl(String id, Int32 pathOffset) +21

System.Web.UI.Control.FindControl(String id, Int32 pathOffset) +289

System.Web.UI.Page.FindControl(String id) +40

System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +252

System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3776



To work from a common ground I have simply taken the C# Web Sample code, added a page (StrataFrame Web Form), dragged on a WebBusinessBindingSource, bound it to the Customers business object, dragged on a grid and bound the grid to the WebBusinessBindingSource. When running the app, if I click the edit on a row and then click either update or cancel, I get the above exception.



There must be something amazingly simple that I am missing here ... Crazy



Please will someone point me in the right direction to resolve this.



Many thanks.



Gavin
Reply
gavin.dell
gavin.dell
StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)
Group: Forum Members
Posts: 6, Visits: 44
Hi Ben,

Thanks for your response and the effort that you have gone through in order to assist me.

I re-ran my brief tests (open the updated and installed C# sample projects in VS, run, go to the
Customers Grid, click Edit then Cancel) before updating the assemblies to
confirm that the problem was indeed still there, and obtained the
identical results - Business Object not found on page.

I then updated the assemblies and registered them using gacutil.   I now
cannot get any version of the C# web samples to fail (other than from
InvalidCastExceptions) which is great for me, but doesn't assist either
you or me in knowing what was amiss. Crazy

The only conclusion I can draw from here is that the process of
registering the assemblies has resolved whatever the issue was.   You will
most likely have more insight into what that may mean than I do.

I will now create a small business object library based on our database schema, and see how it
goes.

I hope you are all feeling better.

Thanks again.

Gavin

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
gavin.dell - 18 Years Ago
Ivan George Borges - 18 Years Ago
Trent L. Taylor - 18 Years Ago
gavin.dell - 18 Years Ago
Trent L. Taylor - 18 Years Ago
gavin.dell - 18 Years Ago
                     Gavin, Have you downloaded this C# sample (...
Trent L. Taylor - 18 Years Ago
                         Hi there,

Yes I have downloaded the sample - the updated...
gavin.dell - 18 Years Ago
gavin.dell - 18 Years Ago
StrataFrame Team - 18 Years Ago
StrataFrame Team - 18 Years Ago
StrataFrame Team - 18 Years Ago
gavin.dell - 18 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search