i am having trouble trying to upload multiple files on a single connection with the ftpWebRequest object in C#.
basically i can get it to upload a single file, but when it comes back to the top of the loop and i try to say
Stream requestStream = myFTP.GetRequestStream()
i get an error saying:
"Cannot re-call BeginGetRequestStream/Begi
se while a previous call is still in progress."
and i already see that the previous upload ended with this response:
ClosingData - 226 Transfer OK
i wrap the requestStream declaration in a using statement as well as the .GetResponse() call
using (FtpWebResponse response = (FtpWebResponse)l_oFTP.GetResponse()
//print out the status code and it says ClosingData - 226 Transfer OK
thanks in advance.