>Maybe it's just because it's late in the day but I can't seem to figure out why I get an error trying to run a method in my business object. I get an error "Object reference is not set to an instance of an object." Here's the code:
>
>
> this.oOnRent.GetOpenItems(this.ddlRequisitioner.SelectedValue, this.ddlApprovers.SelectedValue, this.ddlInvClass.SelectedValue);
>
>
>There are values for each of the parameters and it's not even reaching the code in the business object. I tried changing it to:
>
>
>DataSet ds = this.oOnRent.GetOpenItems(this.ddlRequisitioner.SelectedValue, this.ddlApprovers.SelectedValue, this.ddlInvClass.SelectedValue);
>
>
>I still get the same error.
>
>Any suggestions?
>
One of the objects you're referecing is set to null (e.g. this.oOnRent, or this.ddlRequisitioner, etc.). Just hover over them in the debugger to find out which one is the source of the problem.