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: Cannot put file
msisson
msisson@firstam.com

From: poway, CA USA
Posts: 22
Member Since: 09/24/03
posted October 13, 2003 1:15 PM

This is probably a simple question but I'm stumped. I'm trying to PUT a file to an FTP server but I'm getting the following error:

A first chance exception of type 'Dart.PowerTCP.Ftp.ProtocolException' occurred in dart.powertcp.ftp.dll
Additional information: Request: MKD ErrorFiles
Response: 550 ErrorFiles: Cannot create a file when that file already exists.


Here's my C# code:
================================================================
Dart.PowerTCP.Ftp.FtpFile DartFile;
Dart.PowerTCP.Ftp.Ftp ftp;
ftp = new Dart.PowerTCP.Ftp.Ftp();

ftp.Username = Monitoring.Login;
ftp.Password = Monitoring.Password;
ftp.Server = Monitoring.RemoteHost;
ftp.ServerPort = 21;
ftp.DoEvents = false;
ftp.Passive = false;
ftp.Restart = false;
ftp.Timeout = 30000; //30 second timeout

LocalPath = "C:\CreditReports\PIC\Test\2003082501\2003082501.tst.err";
RemotePath = "ErrorFiles\2003082501.tst.err";
DartFile = ftp.Put(LocalPath, RemotePath);  //<==EXCEPTION THROW HERE
================================================================

I've check the security permissions on the remote file by putting a file with my favorite FTP program (WS_FTP) and it works file. Does the PUT command access a directory path in it? Or am I supposed to navigate to the directory myself and then PUT without a directory path? It seems funny that the error mentions that it's doing a MKD command. Isn't that a MakeDirectory? If so, why? The directory already exists.

Any ideas?
TIA
msisson
msisson@firstam.com

From: poway, CA USA
Posts: 22
Member Since: 09/24/03
posted October 13, 2003 1:21 PM

===== PLEASE DISREGARD MY LAST POST!! ====
User error: I was looking at the wrong machine for file permissions. Everything is working great.

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