login about faq

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

asked Feb 26 at 20:45

Corobori's gravatar image

Corobori
134


More than likely firewall issue, port blocked.

link

answered Feb 29 at 11:31

cdlvj130's gravatar image

cdlvj130
9691017

I'll have a look into it. Anyway it sounds strange that running the code from my test machine remotely it works but not when I am running on the production environment.

Would I be able to find an error message to put me on the right track in my Windows Server 2008 Event Viewer ?

link

answered Feb 29 at 12:36

Corobori's gravatar image

Corobori
134

edited Feb 29 at 12:40

The firewalls between point A and point B could be different than the firewalls between point C and point B.

link

answered Feb 29 at 12:49

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×131
×13

Asked: Feb 26 at 20:45

Seen: 468 times

Last updated: Feb 29 at 12:49

powered by OSQA