Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
NULL Business Object
Message
De
14/06/2011 15:10:20
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
À
14/06/2011 13:30:07
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01514318
Message ID:
01514357
Vues:
33
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform