VB.NET Invalid attempt to read when reader is closed!

Status
Not open for further replies.

beast

Newbie level 5
Joined
Mar 15, 2004
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
66
invalid attempt to read when reader is closed.

Hi,
m facing a very awefull problem, m using data reader object to get the data in a function of class. So when i call the function once without closing the data reader, then its errorless, but next time when i call the same function of the class it raise me an error that "first close the data reader object".

Another case if i close the data reader at the end of the same function then where m receiving or calling the function i can't get the values in data reader, or data reader is empty i think, and the error raise is

"Invalid attempt to read when reader is closed!"

Do u have any idea abt it?
[/b]
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…