A
Andy Green
Ok, here's a really strange one... let's see if anyone else has seen this or
if they have a fix for it.
I have some VB.NET code on an ASP.NET application... it opens a datareader,
then calls a function (passing the datareader as a parameter) to assign the
values to the objects properties.
Every once in a while, right in the middle of the Assign function (which is
just basically a bunch of
_variable = dr("sqlparam")
It will give me this error message:
Invalid attempt to Read when reader is closed.
I can hit refresh in the browser and it works fine. Then every once in a
while it'll happen again.
Now, he's the worst part - it ONLY HAPPENS when the app was built in
"Release" mode - it doesn't happen when it's built in "Debug" mode.
Any takers on this one?
Andy, (e-mail address removed)
if they have a fix for it.
I have some VB.NET code on an ASP.NET application... it opens a datareader,
then calls a function (passing the datareader as a parameter) to assign the
values to the objects properties.
Every once in a while, right in the middle of the Assign function (which is
just basically a bunch of
_variable = dr("sqlparam")
It will give me this error message:
Invalid attempt to Read when reader is closed.
I can hit refresh in the browser and it works fine. Then every once in a
while it'll happen again.
Now, he's the worst part - it ONLY HAPPENS when the app was built in
"Release" mode - it doesn't happen when it's built in "Debug" mode.
Any takers on this one?
Andy, (e-mail address removed)