It's saying that the datareader was closed in your code.
To use a datareader you:
1) declare a connection to the sql server
2) open that connection
3) execute the datareader
4) close the datareader
If your looping your code and trying to read a second time after the
connection is closed you would see this error.
Another possibility is if you put the connection object into an application
level variable, then while one user trys to open a connection another might
be closing it at the same time. In both cases you would see this error.
Or maybe you just forgot to open your connection.
Sincerely,
--
S. Justin Gengo, MCP
Web Developer
Free code library at:
www.aboutfortunate.com
"Out of chaos comes order."
Nietzche
"karim" <> wrote in message
news:1wx1ntk57iwqw.2o5i582wwgpr$....
>
> I have an asp.net page that stopped running properly giving the error
> below. The app uses a SQL Server 2000 on another server. Enterprise
Manager
> and Query analyzer on the web server can connect to that sql server just
> fine and run queries. I rebooted the web server and made aspnet member of
> the admin group. I don't know why the error mentions open connections if
I
> can open several query anaylzer windows using the same sql server
> credentials as the asp.net is using.
> I suspect it's an issue with ado.net or .net in general.
>
> Any ideas?
>
> error message:
> "Executereader requires an open and available connection
>
> Karim