Link to home
Start Free TrialLog in
Avatar of johnf23
johnf23Flag for Greece

asked on

Error 12029 when uploading a text file using Windows FTP Service [wininet.dll]

I use wininet.dll to develop a ( powerbuilder ) code to transfer files using ftp in some specific FTP servers. The process consists of the steps:

1. Connect to FTP Server
2. Change Remote Directory
3. Upload the file ( using FtpPutFile )
4. Disconnect

It works fine for the whole FTP connections except one: at this one specific FTP site, I get error 12029 (ERROR_INTERNET_CANNOT_CONNECT)

I would like to under what conditions this error should appear since the process works fine for the rest of FTP connections / sites.

Thank you in advance
John.
ASKER CERTIFIED SOLUTION
Avatar of spale75
spale75

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of johnf23

ASKER

I use exactly this constant INTERNET_FLAG_PASSIVE, in the call to InternetConnect function in the step A.
However I get 12026.

Any assistance in other issues ( ie firewall ? ) that cause this, is kindly appreciated

Thank you in advance
John
Avatar of spale75
spale75

Well, depending on your (or their!) firewall configuration try to use the active mode then (by not setting INTERNET_FLAG_PASSIVE). Having both sides firewalled IS a problem in FTP.
Avatar of johnf23

ASKER

It was a firewall problem!

Thanks