I have this legacy code :
private void conecta() { if (conexao.State == ConnectionState.Closed) conexao.Open(); } public List
Add MultipleActiveResultSets=true to the provider part of your connection string. See the example below:
MultipleActiveResultSets=true