G
Guest
Hi everyone,
I am trying to get the WebRequestMethods.Ftp.DownloadFile working using the
101 Samples for the Base Class Library from MS. I can get through the
authentication part OK but when the code gets to:
Dim ftpResponse As FtpWebResponse = CType(ftpRequest.GetResponse,
FtpWebResponse)
I receive a Webexception error of "The remote server returned an error:
(501) Syntax error in parameters or arguments. I searched around a bit but
didn't find anything more specific on the 501 error.
I am fairly new to VB 2005 (moving on from VB6) but I have used the
wininet.dll (InternetOpen, InternetConnect, FtpGetFile) to do the same ftp
download in VB6. I didn't really want to use that again since the framework
2.0 has the ftp functions.
Also the server that I ftp to is an AS/400 system, but I really don't
remember having to do anything special with the code I used in VB6. I was
hoping that the issue is just a learning curve problem for me!
Thanks for your help!
Randy
I am trying to get the WebRequestMethods.Ftp.DownloadFile working using the
101 Samples for the Base Class Library from MS. I can get through the
authentication part OK but when the code gets to:
Dim ftpResponse As FtpWebResponse = CType(ftpRequest.GetResponse,
FtpWebResponse)
I receive a Webexception error of "The remote server returned an error:
(501) Syntax error in parameters or arguments. I searched around a bit but
didn't find anything more specific on the 501 error.
I am fairly new to VB 2005 (moving on from VB6) but I have used the
wininet.dll (InternetOpen, InternetConnect, FtpGetFile) to do the same ftp
download in VB6. I didn't really want to use that again since the framework
2.0 has the ftp functions.
Also the server that I ftp to is an AS/400 system, but I really don't
remember having to do anything special with the code I used in VB6. I was
hoping that the issue is just a learning curve problem for me!
Thanks for your help!
Randy