FTP upload fails

G

Guest

Hi,, sorry for multiple questions??,, But can anyone help me???

I have made an FTP-app like the code on:
http://support.microsoft.com/default.aspx?scid=kb;en-us;832679

But i can't upload a file??? I recives an error when the app is trying to
create the socet for upload?? .... It works on local machine, but not to the
remote server im trying to connect to??

But creating a Folder with "ff.CreateDirectory("FTPFOLDERNEW")"
(MKD-command), works fine on the remote server.. So why can't I allso upload
a file??

Thanks
 
G

Guest

It also works fine, when im using my local FTP-server,,, But when I try to
communticate with an "z/VM 3.1 ftpserver level 3A0", on another network, I
have the problem...

I can't read the message from the FTP-server when I parse the "PASV-command",
 
G

Guest

Hi Herfried,,

Im calling this line:

cSocket = CreateDataSocket()

Wich sends the "SendCommand("PASV")" throug the connection..

Then it tries to read the line from the ftp server, (sub-"ReadLine") and
just hangs in the following line?? There is no error messages??

m_iBytes = m_objClientSocket.Receive(m_aBuffer, m_aBuffer.Length, 0)

Best regards
Henrik H
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top