Home › Forums › .NET libraries › Xceed SFTP/FTP for .NET › An unexpected error occurred while sending a command.
Can anyone give me an idea what this error means when excuting a Disconnect on the FTP client.
“An unexpected error occurred while sending a command.”
Its not the most descriptive message in the world.
Applies to Xceed FTP for .NET. Imported from legacy forums. Posted by Robert (had 1034 views)
Can you set the TraceWriter property so we can get a log of the communication with the server?
FtpClient.TraceWriter = new StreamWriter( @”D:\ftp.log”, true );
Can you also provide the relevant code snippet that your are using, the server type you are connecting to, and the stack trace of the exception?
Applies to Xceed FTP for .NET. Imported from legacy forums. Posted by Alain [Xceed] (had 1251 views)