johnf23
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_CON NECT)
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.
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_CON
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
ASKER
It was a firewall problem!
Thanks
Thanks
ASKER
However I get 12026.
Any assistance in other issues ( ie firewall ? ) that cause this, is kindly appreciated
Thank you in advance
John