Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: WinInet error 12003 with wwFTP.FTPsendfile()

$
0
0
Re: WinInet error 12003 with wwFTP.FTPsendfile()
West Wind Internet Protocols
Re: WinInet error 12003 with wwFTP.FTPsendfile()
Dec. 21, 2012
12:51 am
3O801TS0WShow this entire thread in new window
Gratar Image based on email address
From:Frits van den Munckhof
To:Rick Strahl
Sorry Rick, for not being clear enough.

This first part succeeds (resultcode 0)

LOCAL lnResult lnResult=THISFORM.Ftp.FTPconnect(ALLTRIM(THISFORM.txtFTPserver.Value),ALLTRIM(THISFORM.txtUserID.Value),ALLTRIM(THISFORM.txtPassword.Value))IF lnResult=0* Succes AppMsg("De connectie met de FTP-server '"+THISFORM.txtFTPserver.Value+"' is geslaagd","Connectie geslaagd","I") THISFORM.Ftp.FTPclose()ELSE* Connectie mislukt AppMsg("De connectie met de FTP-server '"+THISFORM.txtFTPserver.Value+"' is mislukt. WinInet Error code: "+TRIMSTR(lnResult),"Connectie mislukt","X")RETURN .F.ENDIF

This second statement fails (resultcode 12003), of course without changing the input values for the text-fields between the 2 calls.

lnResult=THISFORM.Ftp.FTPsendfile(ALLTRIM(THISFORM.txtFTPserver.Value),lcFile,JUSTFNAME(lcFile),;ALLTRIM(THISFORM.txtUserID.Value),ALLTRIM(THISFORM.txtPassword.Value))

This is not a very useful error request.

What's the code? What and when does it fail?

Check the server name and make sure the domain name is correct and trimmed.

+++ Rick ---



MSDN suggested this is because of going to a non-Microsoft ftp-server. Passive mode was adviced.

Just connecting to the server succeeds.

I've tried setting lpassiveftp to .T.. That doesn't seem to work. Same error. Any other ideas?





Viewing all articles
Browse latest Browse all 10393

Trending Articles