Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ExecSprocReader() bug?
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00911004
Message ID:
00911423
Views:
14
Patrick,

>Getting error: Invalid attempt to Read when reader is closed.
>Code in my business object:
>
...
> SqlDataReader dr = (SqlDataReader)this.ExecSprocReader(
>   "MyStoredProcedure", this.DatabaseKey, sqlParams);
>
> while ( dr.Read() )  // <--- error
>...
>
>The ExecSprocReader() code in mmDataAccessBase closes the connection before it returns the reader.
>
>I'm not completely sure, but I thought that closing the connection basically closed the reader as well. Please advise, thanks!

I confirmed that this is a problem. We'll fix this in the upcoming release of MM .NET.

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Reply
Map
View

Click here to load this message in the networking platform