Relative Content

Tag Archive for c#.netsftp

How to fix error “Message type 96 is not valid in the current context”

We are using SftpClient class from Renci.SshNet namespace. Using SftpClient Class, we are trying to connect to a SFTP location. But an error is coming intermittently with description “Message type 96 is not valid in the current context”. I have seen questions similar to this, but not where “Message type 96” is mentioned. That’s why created a new thread for this. The error is coming from the code “client.Connect()”.Here is the code