Quantcast
Channel: Chilkat Forum - latest questions
Viewing all articles
Browse latest Browse all 1061

FTP error when running on the production server

$
0
0

I have got a strange issue. When running my code locally it works like a charm, running the same on the production server it fails ! And that is where xxxxxxxx.vps.myxxxxxx.com is located !

The ftp2.connects fails with the following message : ChilkatLog: Connect: DllDate: Mar 16 2009 UnlockPrefix: UCxxxxxxFTP Username: SYSTEM Component: .NET 2.0 Hostname: xxxxxxxx.vps.myxxxxxx.com Port: 21 IdleTimeoutMs: 60000 ConnectTimeout: 60 HeartbeatMs: 0 numBytesRequested: 2048 Connection closed by server. Failed to read FTP response line.. initialStatus: -1 initialResponse: Failed to connect to FTP server.

I tried both passive=true or false and it didn't make any difference

My code is the following

    ftp2.UnlockComponent("mycode")

    ftp2.Hostname = "xxxxxxxx.vps.myxxxxxx.com"
    ftp2.Username = "myusername"
    ftp2.Password = "mypassword"

    ftp2.Passive = True

    Dim success As Boolean
    success = Ftp2.Connect()
    If (Not success) Then
        Response.Write("1 " & ftp2.LastErrorText & "<br>")
        FTP_File = False
    End If

Viewing all articles
Browse latest Browse all 1061

Trending Articles