Home All Groups Group Topic Archive Search About

Error using OracleDataReader - please help

Author
12 Jan 2007 5:53 PM
Philip
Hi,

I retrieve a list of arguments for a stored procedure from ORACLE using
OracleDataAdapter. These populate a listbox on a form.

Then when the user selects the argument from the listbox, I want to allow
the user to set a value for the selected argument.

But when I try to do this step, I always get an error:
System.InvalidOperationException - Operation is not valid due to the current
state of the object.   

Can anyone help me?

thanks,

Philip

Author
12 Jan 2007 6:25 PM
Paul Clement
On Fri, 12 Jan 2007 09:53:02 -0800, Philip <Phi***@discussions.microsoft.com> wrote:

¤ Hi,
¤
¤ I retrieve a list of arguments for a stored procedure from ORACLE using
¤ OracleDataAdapter. These populate a listbox on a form.
¤
¤ Then when the user selects the argument from the listbox, I want to allow
¤ the user to set a value for the selected argument.
¤
¤ But when I try to do this step, I always get an error:
¤ System.InvalidOperationException - Operation is not valid due to the current
¤ state of the object.   
¤
¤ Can anyone help me?

You will need to post some code and identify where in the code the exception occurs.


Paul
~~~~
Microsoft MVP (Visual Basic)

AddThis Social Bookmark Button