-
-
Notifications
You must be signed in to change notification settings - Fork 659
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error while uploading a file to directory #1713
Comments
What are you doing? Source code? What is happening? Verbose log? This exception alone is not enough information. |
This error has occurs when i execute this code.
The error is thrown when i run line: Data for connection are ok. Connection was estabilished. |
client.SetWorkingDirectory(Katalog);
byte[] bytes = new byte[4];
bytes[0] = Convert.ToByte('T');
bytes[1] = Convert.ToByte('E');
bytes[2] = Convert.ToByte('S');
bytes[3] = Convert.ToByte('T');
client.UploadBytes(bytes, "test.txt");
client.DeleteFile("test.txt"); I tried such code. It worked for me. Please provide a log of what is happening to cause the timeout exception |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Latest version on library throws exception:
2025-01-27 11:28:30.272 | FluentFTP.Exceptions.FtpException
FluentFTP.Exceptions.FtpException: Error while uploading the file to the server. See InnerException for more info. ---> System.TimeoutException: Timed out trying to read data from the socket stream!
w FluentFTP.FtpSocketStream.Read(Byte[] buffer, Int32 offset, Int32 count)
w FluentFTP.FtpSocketStream.ReadLine(Encoding encoding)
w FluentFTP.Client.BaseClient.BaseFtpClient.FluentFTP.IInternalFtpClient.GetReplyInternal(String command, Boolean exhaustNoop, Int32 timeOut, Boolean useSema)
w FluentFTP.Client.BaseClient.BaseFtpClient.FluentFTP.IInternalFtpClient.ExecuteInternal(String command)
w FluentFTP.FtpClient.OpenPassiveDataStream(FtpDataConnectionType type, String command, Int64 restart)
w FluentFTP.FtpClient.OpenDataStream(String command, Int64 restart)
w FluentFTP.FtpClient.OpenWriteInternal(String path, FtpDataType type, Int64 fileLen, Boolean ignoreStaleData)
w FluentFTP.FtpClient.UploadFileInternal(Stream fileData, String localPath, String remotePath, Boolean createRemoteDir, FtpRemoteExists existsMode, Boolean fileExists, Boolean fileExistsKnown, Action
1 progress, FtpProgress metaProgress) --- Koniec śladu stosu wyjątków wewnętrznych --- w FluentFTP.FtpClient.UploadFileInternal(Stream fileData, String localPath, String remotePath, Boolean createRemoteDir, FtpRemoteExists existsMode, Boolean fileExists, Boolean fileExistsKnown, Action
1 progress, FtpProgress metaProgress)w FluentFTP.FtpClient.UploadBytes(Byte[] fileData, String remotePath, FtpRemoteExists existsMode, Boolean createRemoteDir, Action
1 progress) w RozsylaczDokumentow3.Classes.SendToFTP.<>c__DisplayClass0_2.<CheckConnection>b__1(Task
1 n) w Z:\GIT\Rozsyłacz dokumentów\RozsylaczDokumentow18\Classes\SendToFTP.cs:wiersz 151System.TimeoutException: Timed out trying to read data from the socket stream!w FluentFTP.FtpSocketStream.Read(Byte[] buffer, Int32 offset, Int32 count)
w FluentFTP.FtpSocketStream.ReadLine(Encoding encoding)
w FluentFTP.Client.BaseClient.BaseFtpClient.FluentFTP.IInternalFtpClient.GetReplyInternal(String command, Boolean exhaustNoop, Int32 timeOut, Boolean useSema)
w FluentFTP.Client.BaseClient.BaseFtpClient.FluentFTP.IInternalFtpClient.ExecuteInternal(String command)
w FluentFTP.FtpClient.OpenPassiveDataStream(FtpDataConnectionType type, String command, Int64 restart)
w FluentFTP.FtpClient.OpenDataStream(String command, Int64 restart)
w FluentFTP.FtpClient.OpenWriteInternal(String path, FtpDataType type, Int64 fileLen, Boolean ignoreStaleData)
w FluentFTP.FtpClient.UploadFileInternal(Stream fileData, String localPath, String remotePath, Boolean createRemoteDir, FtpRemoteExists existsMode, Boolean fileExists, Boolean fileExistsKnown, Action`1 progress, FtpProgress metaProgress)
Please help me ;)
The text was updated successfully, but these errors were encountered: