Archived Forum Post

Index of archived forum posts

Question:

sftp.UnlockComponent is throwing an Exception

Sep 10 '14 at 16:03

I am getting exception on sftp.UnlockComponent

Following the link : http://www.example-code.com/vbnet/sftp_uploadFile.asp

Sample Code

    Dim success As Boolean
    success = sftp.UnlockComponent("Anything for 30-day trial")

    If (success <> True) Then
        MsgBox(sftp.LastErrorText)
        Exit Sub
    End If

I have not exceeded 30 day trial. I am still working on Prototype / Testing the Application. I wonder what could be the reason to spill the exception.


Accepted Answer

Set the sftp.DebugLogFilePath property equal to a file to be created. Also set the sftp.VerboseLogging = true. Then re-run to reproduce the exception and send me the debug log file that is produced.


Answer

Error Message:- The method or operation is not implemented.

Dim sftp As New Chilkat.SFtp()
    Dim success As Boolean

    sftp.VerboseLogging = True
    sftp.DebugLogFilePath("d:\\Test.txt")

    success = sftp.UnlockComponent("Anything for 30-day trial")
    If (success <> True) Then
        MsgBox(sftp.LastErrorText)
        Exit Sub
    End If

Answer

DebugLogFilePath is a property, not a method. You should do this instead:

sftp.DebugLogFilePath = "d:\Test.txt"