0 votes
by (900 points)

How to resend command if InvalidOperationException is received.

Applies to: Rebex FTP/SSL

1 Answer

0 votes
by (58.9k points)

InvalidOperationException can have two causes - it either means that the error is in your program (e.g. it is not possible to call the GetFile method before you are connected and logged into the server via Connect and Login methods; or another example would be if you do not handle a previous exception correctly and then call another Ftp method, then the InvalidOperationException would most probably be thrown as well - the solution is usually to fix the recovery from the previously badly treated exception.)

Another possibility is that there is a problem in the Rebex FTP component.

If you are unable to identify the problem in your program based on the actual error message, we would be able to look into it and help you. However, we would need to see a log of communication then. In this case, either post your log here, or send it to support@rebex.net. Based on this we will be able to tell you more.

by (58.9k points)
By the way, what Rebex components are you using and what are your license details? Could you please either share your license (order ID, or registered email) details to support@rebex.net? If you are our trial user, let me know what components you are currently evaluating. Thank you!
...