Open DataReader associated [Solution Needed ASAP]

Results 1 to 2 of 2

Thread: Open DataReader associated [Solution Needed ASAP]

  1. #1
    Join Date
    Dec 1969

    Default Open DataReader associated [Solution Needed ASAP]

    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=&#039;Jr&#039; and CodeType=&#039;Iry&#039;"<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>

  2. #2
    Join Date
    Dec 1969

    Default ***CROSSPOST***

    copy pasted into Database Q and A or vice versa.<BR><BR>Read why CROSSPOSTING is bad while you wait for an answer.<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts