There is already an open DataReader associated with this Connection which must be closed first
问题 I am using Visual Studio 2010 (C#) with mysqlConnector and everything seems to be fine. However, when I try to request something from the server I get this error: "There is already an open DataReader associated with this Connection which must be closed first." This is my code: gc.connect(); List<Conseiller> conseillers = gc.getAllConseillers(); -- public void connect() { string connStr = "SERVER=localhost;UID=root;DATABASE=Projet;Password=root"; oConn = new MySqlConnection(connStr); try {