title: Using statement doesn't seem to dispose my object
body: <p>I'm having some trouble.  I have a SqlCommand in a using block.  Usually this works fine.  This time however, the code exits the using block but the command does not get disposed.  It has me stumped.</p>
  
  <pre><code>using (SqlCommand transferCommand = new SqlCommand(strHeaderStoredProcedure, connection))
  {
      transferCommand.CommandType = System.Data.CommandType.StoredProcedure;
      transferCommand.Parameters.Add("@InvtTransferID", SqlDbType.UniqueIdentifier).Value = InvtTransferID;
      SqlDataReader transferReader = transferCommand.ExecuteReader();
      while (transferReader.Read())
      {
          //do my stuff, this all works fine
      }
  }
  
  
  using (SqlCommand transferCommand = new SqlCommand(strDetailsStoredProcedure, connection))
  {
      transferCommand.CommandType = System.Data.CommandType.StoredProcedure;
      transferCommand.Parameters.Add("@InvtTransferID",     SqlDbType.UniqueIdentifier).Value = InvtTransferID;
      SqlDataReader transferReader = transferCommand.ExecuteReader(); &lt;-- Error happens here.
  }
  </code></pre>
  
  <p>I'm trying to reuse my connection to run a bunch of stored procedures.  It is the strangest thing.  I have some code on another form that is virtually identical and it runs fine, disposing the command and allowing me to make another.  Any ideas what I'm doing wrong?  (I'm trying to make this code look nice in the post but it seems to be beyond my meager power...so sorry for the messy code.)</p>
  
  <p>Error is: There is already an open DataReader associated with this Command which must be closed first.</p>