Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ExecSprocReader() bug?
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00911004
Message ID:
00911423
Vues:
13
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform