Operation is not valid due to the current state of the object
From: --dweezil (dweezil_at_discussions.microsoft.com)
Date: 10/01/04
- Next message: Dominick Baier: "ASP.NET hosting & MS Access"
- Previous message: mangia: "Re: Access is denied. / HTTP 500 - Internal server error"
- Next in thread: ranganh: "RE: Operation is not valid due to the current state of the object"
- Reply: ranganh: "RE: Operation is not valid due to the current state of the object"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 1 Oct 2004 13:03:02 -0700
I'm using the Oracle .NET data provider in my ASP.NET application to connect
to Oracle. I am recieveing the error:
System.InvalidOperationException: Operation is not valid due to the current
state of the object.
I'm getting this error when I try to access the OracleDataReader object
variable like so...
while ( reader.Read() )
{
Response.Write (reader["field1"].ToString() ); // THIS IS WHERE THE
ERROR OCCURS!!!
}
The code runs fine in a C# console application...so it has to be an ASP.NET
issue, and I'm thinking it is probably a security setting somewhere.
Thanks for any help!
- Next message: Dominick Baier: "ASP.NET hosting & MS Access"
- Previous message: mangia: "Re: Access is denied. / HTTP 500 - Internal server error"
- Next in thread: ranganh: "RE: Operation is not valid due to the current state of the object"
- Reply: ranganh: "RE: Operation is not valid due to the current state of the object"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|