Hey guys,
I have been seeing sporadic instances of the following exception: "Session operation has timed out" on the connect command.
If (sPrivateKeyFile.Length > 0) ThenDim pk = New PrivateKeyFile(System.IO.File.OpenRead(PrivateKeyFolder() & sPrivateKeyFile), sPassPhraseOrPW) conn = New PrivateKeyConnectionInfo(sHost, iPort, sUserID, pk)Else conn = New PasswordConnectionInfo(sHost, iPort, sUserID, sPassPhraseOrPW)EndIfDim sf = New SftpClient(conn) sf.Connect()
I am using the 3.5 version that I believe was built on last Saturday. This is being used in a threaded service, however the most recent error occured when only one thread was processing, so I do not believe it is a thread specific problem.
Other info- this is a private key / passphrase type connection.
I thought I would mention this just in case it is related to the problems being encountered by the original poster.
The problem is very inconsistent. I can reset a failed attempt (try again using the same code/process) and it will work.
Thanks, Mike
edit- the code frame on this panel is hacking up the appearance of this post...