Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
NULL Business Object
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01514318
Message ID:
01514329
Views:
30
>I have a maintenance form with a business object "Location" and it works as expected.
>
>I have a second form that has many business objects including the "Location" business object.
>
>I have no issues with any of the business objects except the "Location" business object. When I run the form and call _location.GetAllData() the application throws a null reference error.
>
>*Declare business object
>Private _location As Location
>
>*Initialize business object
>Me._location = CType(Me.RegisterBizObj(New Location), Location)
>
>*Get all data
>Me._location.GetAllData()
>
>This works fine on my "LOcations" maintenance form, but not on my other form. Any help on this?
>
>Thanks.
Hi, Robert,
I usually get an error like that when I have changed my table structure and forgotten to update the business object. Or sometimes I remember to update the business object but forget to copy the BLG-generated stored procedures to my pre-production and production databases. It's a good place to start.
Linda
Linda Harmes
HiBit Technologies, Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform