title: Cannot access a disposed object. Object name: System.Net.Sockets.NetworkStream
body: <p>I am using CsvHelper. Here I am trying to download a csv file from ftp and write to a class. It's throwing an error - Cannot access a disposed object. Object name: System.Net.Sockets.NetworkStream. from line - 
  IEnumerable records = csv.GetRecords().ToList();</p>
  
  <p>Any idea?</p>
  
  <pre><code>            request.Credentials = new NetworkCredential(ftpUser, ftpPwd);
              request.Method = WebRequestMethods.Ftp.DownloadFile;
              request.UseBinary = true;
  
              // Csv file
              using (FtpWebResponse response = (FtpWebResponse)request.GetResponse())
              {
                  using (Stream responseStream = response.GetResponseStream())
                  {
                      if (responseStream != null)
                      {
                          using (TextReader tr = new StreamReader(responseStream))
                          {
                              using (CsvReader csv = new CsvReader(tr))
                              {
                                  if (csvUpload.IncludeInvoice) csv.Configuration.RegisterClassMap&lt;PacketUploadInvoiceMasterMap&gt;();
                                  else csv.Configuration.RegisterClassMap&lt;PacketUploadBasicMasterMap&gt;();
  
                                  IEnumerable&lt;PacketUploadMaster&gt; records = csv.GetRecords&lt;PacketUploadMaster&gt;().ToList();
  
                                  pumResults = records.ToList();
                              }
                          }
                      }
                  }
  
                  response.Close();
              }
  </code></pre>