|    
			
				26/03/2010, 16:25
			
			
			  | 
  |   |  |  |  |  Fecha de Ingreso: abril-2009 
						Mensajes: 994
					 Antigüedad: 16 años, 6 meses Puntos: 30 |  | 
  |  Respuesta: There is al ready an open Datareader associated with this Command which mu  
  Hola vidalsoft, tal como dice el error esta pasa porque has ejecutado un datareader y luego ejecutas otro sin haber cerrado el primero. Como no dices en que procedimiento te da, asumire que es una busqueda, si es así porque no usas un dataset y te evitas el problema.
 Te dejo un ejemplo codebehind para el dataset
 
 Dim DA = New SqlClient.SqlDataAdapter("Select * ...... conexion)
 Dim DS = New DataSet
 DS.Clear()
 DA.Fill(DS, "tabla")
 If DS.Tables("tabla").Rows.Count <> 0 Then
 variable = DS.Tables("tabla").Rows(0)("columna")
 Else
 
 End If
 DA.Dispose()
 DS.Dispose()
 
 
 Otra opcion es que cierres el datareader con un datareader.close
 
 Saludos,
     |