Dan R
Dan R

Reputation: 33

What is causing timeout at GetResponse()

I am trying to access an FTP server via a console application written in c#. My application has a time-out at FtpWebRequest.GetResponse() -- the first line inside the try/catch.

I can access the FTP server via Filezilla with the credentials, and the uri + port, supplied to me.

Each time I run this code, I receive the following output.

Message:

The operation has timed out.

Response:

System.Net.FtpWebResponse

Response Code:

Undefined

Response StatusDescription:

Stacktrace:

at Syste.NetFtpWebRequest.GetResponse() at ConsoleApplication1.Program.Main(String[] args) in c:\Visual Studio 2013\Projects\ConsoleApplication1\ConsoleApplication1\Program.cs:line27

Upvotes: 0

Views: 538

Answers (0)

Related Questions