

The problem seems to happen towards the end after the EPSV command is issued and a connection on a new port is established. My FTP service provider specifies that I have to connect on port 21. I changed the real user name and IP, but the rest of the data (including the port) is the real data. Here is the logging information from FluentFTP. public void FtpStuff()Ĭlient.Credentials = new NetworkCredential("myname", "password") Ĭlient.EncryptionMode = FtpEncryptionMode.Explicit Unable to build data connection: Operation not permitted. This is the line that throws the exception StreamReader streamReader = new StreamReader(response.GetResponseStream()) Request.Method = įtpWebResponse response = (FtpWebResponse)request.GetResponse()

Request.Credentials = new NetworkCredential("myname", "password") Since I'm able to connect using FileZilla from the same computer, I'm not sure how to go about troubleshooting this.įtpWebRequest request = (FtpWebRequest)WebRequest.Create(url) NET code using FtpWebClient, I get the error I'm able to connect and list a directory using FileZilla of WinSCP. I am trying to open an FTP connection over SSL in my code.
