>Hello.
>
>I regenerated the business object. The business object still works on my "Maintenance" form, but still doesn't work on my other form. It throws a "NULLReferenceException was unhandled" on me._location.GetAllData().
>
>When I look at me._location.DataSet it contains all of the data in in my "Locations" table as expected. The business object isn't null, but it continues to throw this exception.
>
>Any help on this?
>
>Thanks.
Robert,
Are you calling the same method on your business object to retrieve data in both forms? If not, then I suggest stepping into the method you are calling that doesn't work and find out which line of code in the business object is giving you the error. This will help in narrowing it down. If you are calling the same method, then can you post the code from both forms like you did earlier so we can see what is different?
Timothy
Timothy Bryan