-
It's possible in 1.3.3 for ReadLines() to return an incomplete line, or more likely, an empty array of lines. This would result in an ArgumentOutOfRangeException at line 717 of FTPConnection. The code below fixes it (one of many ways to do it I'm sure). Also makes tmpMes a StringBuilder instead of string, but that's not needed for the fix.
private ArrayList ReadLines(NetworkStream stream)
2009-06-04 18:03:41 UTC by waldenl
-
As the FTPConnection Class has Open and Close Methods, I really think it shold implement IDisposable. Then the Dispose method should call the Close method.
2009-01-28 18:10:10 UTC by vernicht
-
Hi,
I fixed it by allowing all ok status codes to be accepted as ok in Dir command and others
Allow status codes 200 - 299 to be ok. I also fixed this part that you write here in same way. Thx.
public ArrayList Dir()
{
LockTcpClient();
TcpListener listner = null;
TcpClient client = null;
NetworkStream networkStream = null;
ArrayList tempMessageList = new...
2008-09-23 15:38:58 UTC by energed
-
Changing the line following line in FTPConnection.cs:
FileStream fs = new FileStream(localFileName, FileMode.Open);
into the following one:
FileStream fs = new FileStream(localFileName, FileMode.Open, FileAccess.Read);
seems to work, I hope it helps.
Cheers.
2007-10-18 13:50:27 UTC by nietzsche44
-
You don't seem to have a function for retrieving the remote current directory. Here it is:
public virtual string GetCurrentDirectory()
{
LockTcpClient();
System.Collections.ArrayList tempMessageList;
int returnValue;
tempMessageList = SendCommand("PWD");
returnValue =...
2007-05-18 15:16:34 UTC by open-collar
-
Logged In: YES
user_id=1218689
This fix works for me too.
2006-10-10 00:43:58 UTC by xraytux
-
On a DIR command, the code currently expects to either
receive the responses right away or expects to receive
the 226 after the file list is read. However, some ftp
servers don't return the 226 until after the data
channel is closed. In this case, because the data
channel is closed after the message is read, an
erroneous error message about "ftp comment not received
from server" is...
2006-09-18 17:29:20 UTC by nobody
-
Please add TLS/SSL support.
Thank you.
2006-09-11 23:26:24 UTC by yblood
-
This might be more of a suggestion than a bug report,
but Sendfile opens files for read write, causing it to
fail when the files are read only.
see the google thread here for more details:
http://groups.google.com/group/
microsoft.public.dotnet.languages.csharp/browse_thread/
thread/9d95c8ed1086b80a/
409c1b2749c60dbd?hl=en#409c1b2749c60dbd.
2006-09-08 21:59:12 UTC by nobody
-
DotNetFTPClient is a library written in C# dedicated to the MS .NET developers who needs to access FTP servers.
It is very easy to use and supports all the standard FTP operations in passive or active and synchronous or asynchronous modes. Further more, this library allows to upload and download files as well as Streams.
You can download the latest version here...
2003-11-21 13:21:41 UTC by boudartjj