I trying upload file to a directory on a FTP server. I used this method with FtpWebRequest.
I would like to upload one file to a home directory for this user, but I always get the following error message:

The requested URI is invalid for this FTP command.

What can be problem? I tried use passive mode off, but it still the same.

The error suggests that there is no ftp server sitting on 12.22.44.45 willing to accept the credentials of pokus and password (whatever the real info is). Have you attempted to ftp to this server outside of code using these settings/credentials?
–
Joel EthertonDec 14 '10 at 18:44

Can you tell us where you get the error message? That is, what statement causes the error?
–
Jim MischelDec 14 '10 at 19:48