Login  
Search All Forums
Dart Home | PowerTCP FTP for .NET | Custom Development Reply | PowerTCP FTP for .NET Topics | Forums   
AuthorForum: PowerTCP FTP for .NET
Topic: MKD Error
jmurray_mi

From: Farmington Hills, MI USA
Posts: 9
Member Since: 05/20/03
posted May 20, 2003 9:16 AM

I am testing this control for an upload to a secure IBM server. I get properly connected but when trying to upload I get an error. Below is the output.

Getting local list ...
Connected to ###.###.###.###
File error (*/Test.txt): Request: MKD * Response: 502 Command not supported.
Successfully stored 0 files.
Logging out ...
Process complete.

Can anyone help?

Jesse
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted May 20, 2003 5:20 PM

Hi Jesse,
What does your Put line look like?
The server thinks you are trying to make a directory called "*".
Thanks,
-ken
jmurray_mi

From: Farmington Hills, MI USA
Posts: 9
Member Since: 05/20/03
posted May 21, 2003 9:07 AM

FTP1.Put("D:\Open Projects\Automate FTP\", "Test.txt", "EB239.EB239S1/*", False)

The remote folder name is the location the files are to be delivered to. Based on the client this will change.

Thank you,

Jesse
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted May 21, 2003 4:02 PM

Hi Jesse,
The third parameter should be the directory only. Right now it is trying to create a directory "*" on the server to store the file(s) in.

Also, this overload of Put is for multiple files. It looks like you are only transferring a single file "Test.txt". You may just want to do something like:
Ftp1.Put("D:\Open Projects\Automate FTP\Test.txt", "EB239.EB239S1/Test.txt"

Hope it helps,
-ken
jmurray_mi

From: Farmington Hills, MI USA
Posts: 9
Member Since: 05/20/03
posted May 21, 2003 4:20 PM

Thank you for the input. I have changed to this and get the following mesdsage.

FTP1.Put("D:\Open Projects\Automate FTP\Test.txt", "EB239.EB239S1/Test.txt")

Getting local list ...
Connected to 204.146.24.68
ERROR: Request: MKD EB239.EB239S1
Response: 502 Command not supported.


Jesse
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted May 21, 2003 4:54 PM

Hi Jesse,
Again, the server is refusing to make a directory called "EB239.EB239S1".
It looks like your server does not support the creation of directories.
-ken
jmurray_mi

From: Farmington Hills, MI USA
Posts: 9
Member Since: 05/20/03
posted May 21, 2003 4:56 PM

That is true. I am unable to create directories on the server. However, this directory already exists and I am simply trying to set the folder to it.

Is there a different method for setting the remote folder?

Jesse
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted May 22, 2003 12:05 PM

Hi Jesse,
The control would only try to make the directory if it did not already exist. 
If you use the Trace event, what does a log of the session look like?
Thanks,
-ken

'Add this line to the trace event for
'Quick and easy logging in the debug window
Debug.WriteLine(e.Segment.ToString())
jmurray_mi

From: Farmington Hills, MI USA
Posts: 9
Member Since: 05/20/03
posted May 23, 2003 9:29 AM

This the error log that is generated. The last error has system which is different that what I have seen previously. Does this mean something to you?

Jesse

<--- 220 ieftpint2 IE-FTP server (v4r1m0.g) ready on system USA.

---> AUTH SSL

<--- 234 AUTH command accepted - proceed with Negotiation.

---> USER XXXXX

<--- 331 Enter Password.

---> PASS XXXXXXXX

<--- 230 Ready - Ignored invalid username, used "XXX.XXXXX.XXXXX" from certificate instead.

---> TYPE I

<--- 200 Type now set to I.

---> PASV

<--- 227 Entering Secured Passive Mode (204,146,24,68,177,227)

---> STOR XXXX.XXXX\Test.txt

<--- 553 Invalid destination System[  ] Acct[*] Userid[*] Class[*].

---> MKD XXXXX.XXXXXX

<--- 502 Command not supported.
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted May 23, 2003 11:53 AM

Jesse,
Try going to the directory first, and then storing the file. For example:
Ftp1.Invoke(FtpCommand.ChangeDir, "EB239.EB239S1")
Ftp1.Put("d:\Open Projects\Automate FTP\Test.txt", "Test.txt")

Your server is sending a bad reply to the STOR command. The control assumes it is because the directory is not present, and tries to create it. When this happens, the server says it can't do that.

If you go to the location where the file is to be stored, and then store it, does it work?

Thanks,
-ken
jmurray_mi

From: Farmington Hills, MI USA
Posts: 9
Member Since: 05/20/03
posted May 23, 2003 1:02 PM

Ken,

Thank you for the help on this one. I have successfully delivered a file to the server. Now all that's left is getting the security certificate messages to not pop up and I'm all set.

Thanks again for all your help.

Jesse
Reply | PowerTCP FTP for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX