Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RegisterBizObj Issues
Message
From
24/06/2009 18:05:15
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
24/06/2009 13:30:14
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01408147
Message ID:
01408247
Views:
31
Lynn,

>In my application I have a WPF user interface. I have been unable to successfully register a mm.net business object in the code behind file. So I created some "controller" classes and tried to register the bussiness objects there.
>
>In the XAML code behind file, I would get an error at run time: "Object reference not set to an instance of an object." as soon as the RegisterBizObject command was executed.
>In the controller class, the error didn't occur until I tried to query data using a method contained in the registered object.
>
>Does anyone have some good information on the RegisterBizObject command:
> Where it can and cannot be used?
> What needs to be done before this command is run?
> Is it possible to register a business object in a class that is not associated with a control?
>
>Any ideas or help would be greatly appreciated.
>
>Lynn 8-)

When you call a method on the business object there are lots of other objects that get created. Most likely it will have something to do with the DataAccessClasses that are not getting created for some reason. You indicated the error didn't occur until you tried to call a method on the registerd business object, so registering it wasn't likely the problem. If you can post the full stack trace it might be easier to see which object isn't getting created. Alternatively, you could set a breakpoint in the method you are calling and step into the MM code to find out what is happening.
Tim
Timothy Bryan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform