Open DataReader associated [Solution Needed ASAP]

ellaunmellow

New Member
Im facing some problem in my applications.<BR>wanna now that if any one face similar kind of problem.<BR>We have finished the Application and we are right Now in Testing Mode..<BR>when im testing.. i some time, only some time i get this error. once this error come the applications stops than i have to chage the web config file and run again..<BR>Any kind of suggestions would be very helpfull for me.<BR><BR>Error..<BR>Non-negative number required. Parameter name: length <BR>Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. <BR><BR>Exception Details: System.ArgumentOutOfRangeException: Non-negative number required. Parameter name: length<BR>____________<BR>Source Error: <BR>Line 345: myConnection = New SqlConnection(Connect) <BR>Line 346: Sql = "Select * From dataentry where Mod_Id =" & ID &" and Mod_Name='Jr' and CodeType='Iry'"<BR>Line 347: myConnection.Open()<BR>Line 348: myCommand = New SQLCommand(sql, myConnection)<BR>Line 349:<BR><BR>Error line number 347<BR>_______________<BR>First this error shows and then after that i keep getting this <BR>error until i change the web config file.<BR>_______________<BR>There is already an open DataReader associated with this Connection which must be closed first. <BR>_____________<BR><BR>Thank you in Advance<BR>Kazaroy<BR><BR>copy pasted into Database Q and A or vice versa.<BR><BR>Read why CROSSPOSTING is bad while you wait for an answer.<BR>http://www.aspfaqs.com/aspfaqs/ShowFAQ.asp?FAQID=110<BR>
 
Back
Top