3

We have a process in place to upload a file nightly to a partner FTP site. They now require a passive connection and our uploads now fail. Is it possible for the .NET 4 FtpWebRequest to implement a passive connection instead of an active one? If so, can someone please provide an example?

Sean Carpenter
  • 7,681
  • 3
  • 37
  • 38
James Alexander
  • 6,132
  • 10
  • 42
  • 56

3 Answers3

5

Set the UsePassive property to true on the FtpWebRequest.

vcsjones
  • 138,677
  • 31
  • 291
  • 286
1

Just to add something to an old post - The FtpWebRequest.UsePassive property is True by default, so all requests should use passive already.

Nick
  • 461
  • 5
  • 17
0

Tried setting the UsePassive property on FtpWebRequest? See MSDN.

abatishchev
  • 98,240
  • 88
  • 296
  • 433
Peter Mourfield
  • 1,885
  • 1
  • 19
  • 38