title: A first chance exception of type "System.ArgumentException" occured in mscorlib.dll
body: <pre><code>  try
          {
              FtpWebRequest req = (FtpWebRequest)WebRequest.Create("ftp path");
              req.Method = WebRequestMethods.Ftp.ListDirectoryDetails;
              using (var resp = (FtpWebResponse)req.GetResponse())
              {
                  Console.WriteLine(resp.WelcomeMessage);
              }
              FtpWebResponse res = (FtpWebResponse)req.GetResponse();
              Stream rs = res.GetResponseStream();
              StreamReader read1 = new StreamReader(res.GetResponseStream());// prob A
              Console.WriteLine(read1.ReadToEnd());
              Console.WriteLine("Directory is compleate,status(0)",
              res.StatusDescription);
              read1.Close();
              rs.Close();
          }
          catch (Exception e1)
          {
              Console.WriteLine(e1.Message);
          }
  </code></pre>
  
  <p>I am trying to access ftp server via C#.  </p>
  
  <p>However, the code errors with an exception:<br>
  <code>A first chance exception of type "System.ArgumentException" occured in mscorlib.dll. Stream was not readable.</code></p>
  
  <p>Any help will be appreciated.</p>