After a couple of hours hard struggle with FtpWebResponse and the following error message:
The remote server returned an error: (425) Can't open data connection.  

I was having problems getting passive FTP to work on Windows Server 2008 using the IIS FTP server. By default, only port 21 is open for FTP, but passive FTP ports are blocked. Since this port is selected at random, you cannot open a particular port to make this work. Instead, enabling stateful FTP allows the firewall to see that the connection is related to an existing connection and will allow the traffic.

To enable stateful FTP:

C:/> netsh advfirewall set global StatefulFtp enable

Tags
Comments
Write the first comment
Leave a trace
Name *
Email *
Website
Anti SPAM * Code (5 + 7) =
Leave me a comment *
 
All comments are subject to editorial review
Post being viewed right now
Item date: 08.03.2009
Views: 1158
Item date: 17.06.2009
Views: 1060
Item date: 26.09.2009
Views: 903
Item date: 07.03.2009
Views: 3678
Item date: 15.05.2009
Views: 763
Item date: 04.02.2009
Views: 2086
Item date: 05.02.2009
Views: 1930
Item date: 06.02.2009
Views: 959
Item date: 08.04.2010
Views: 3628