0 votes
by (160 points)

Hello Rebex Community,
I use Rebex.Net.Ftp.PutFile () and get the following error message:
Rebex.Net.FtpException: Socket error 10038 occured.
Can it be that I use the library incorrectly or what can be the mistake?
Thank you very much.
Yours sincerely
Saphymo

Applies to: Rebex FTP/SSL

1 Answer

0 votes
by (144k points)

Hello,
Socket error code 10038 is WSAENOTSOCK, which indicates that "an operation was attempted on something that is not a socket". This error is known to occur on .NET Compact Framework when a connection to a network has been lost. Does this apply to your situation?

by (160 points)
Good day,
a disconnect can happen in my case. Normally the application then goes into the timeout. I thought that the socket error code has something to do with improper programming of rebex pages. That's why I asked for a precaution ...
by (144k points)
The error code is actually contradictory (an operation on a .NET socket failing with "not a socket" error), but that's what the underlying OS reports. However, we'll at least try enhance our library to raise an exception with a more meaningful message in this case.
by (144k points)
Rebex FTP 2018 R3 and later report this as "Connection has been lost."
...