Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
Password Reminder
Register
Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old December 28th, 2005, 09: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.

 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 12:09 AM



All times are GMT -4. The time now is 02:48 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.