Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old December 28th, 2005, 10:05 PM
Registered User
 
Join Date: Dec 2005
Location: Sydney, NSW, Australia.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sonnie
Default Errors on Chapter 12 example(12.8)

Dear Friends,

I'm getting error on chapter 12(List 12.8). Is there any one who is able to compile that one successfully. Error is:
"
Line: OrderDetailReader = Command.ExecuteReader();

There is already an open DataReader associated with this Command which must be closed first.
"

Thanx
Sonnie


  #2 (permalink)  
Old May 31st, 2006, 12:56 PM
Registered User
 
Join Date: May 2006
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by sonnie
 Dear Friends,

I'm getting error on chapter 12(List 12.8). Is there any one who is able to compile that one successfully. Error is:
"
Line: OrderDetailReader = Command.ExecuteReader();

There is already an open DataReader associated with this Command which must be closed first.
"

Thanx
Sonnie


I'm getting exactly the same problem. The whole purpose of this example is to show how to have multiple data readers open on the same connection WITHOUT getting this error message.

  #3 (permalink)  
Old June 7th, 2006, 10:55 AM
Registered User
 
Join Date: May 2006
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I figured it out from an article about MARS on MSDN.
http://msdn2.microsoft.com/en-us/library/h32h3abf.aspx.
You need to append the following to your connection string...
MultipleActiveResultSets=true

If the book actually contained the connections string the examples required it would help greatly. This is one of the areas n which the book needs to be improved.



Similar Threads
Thread Thread Starter Forum Replies Last Post
want to convert date from 01/12/07 to 12-Jan-2007 hurperl Perl 1 April 12th, 2007 05:47 AM
Ch. 12 - SqlDataSource Designer Errors llealii BOOK: Professional ASP.NET 2.0 Server Control and Component Development ISBN: 978-0-471-79350-2 2 April 11th, 2007 11:14 AM
Chapter 12... rrlevron BOOK: Beginning ASP 3.0 2 January 16th, 2006 01:09 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.