Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unable to register business object in WPF
Message
From
07/05/2009 20:16:55
 
 
To
06/05/2009 17:09:35
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01398219
Message ID:
01398475
Views:
45
Thanks for your reply. I did have the Patient object defined correctly at first, but then changed it to see if it would make a difference.
private Patient Patient; instead of private Patient = new Patient();

I found out I had some issues with the names of my stored procedures. I couldn't get the MM.Net AAppTest to run correctly. I fixed that and tried to run from the main application again. I'm still getting the same error: "Object reference not set to an instance of an object." in this line of code:
this.Patient = (Patient)this.RegisterPrimaryBizObj(new Patient());


Is there supposed to be code in the HookConstructor() method in the partial.cs file for my business object (Patient in this case)? That method is empty and yet is called by the business object constructor. The MM.Net Dev Guide doesn't mention putting any code in there. But how is the object supposed to get the data from the data source if there are no data access calls?

Very confusing.

Thanks!

Lynn 8-)
Lynn Sim
Perot Systems Corp
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform