InitializeSftp – Received FAILURE response to subsystem request.

If the SSH server is setup/configured to not allow SFTP, or your SSH user account is not allowed to use SFTP, the InitializeSftp method will return a failed status. Here is an example: ChilkatLog: InitializeSftp: DllDate: Oct 30 2009 UnlockPrefix: ABC123 Username: chilkat Component: .NET 2.0 SshVersion: SSH-2.0-OpenSSH_4.5 SftpVersion: 0 …

Error: The system cannot find the file specified

If a Chilkat method fails because a file was not found, the LastErrorText will contain information such as this: ChilkatLog: LoadFromFile: DllDate: Sep 1 2009 filename: myCert.cer Failed to open file (2) filename: myCert.cer currentWorkingDirectory: c:\windows\system32\inetsrv osErrorInfo: The system cannot find the file specified. WindowsError: 0x2 Failed. There are two …

UNC Path — Could not load assembly — Failed to grant minimum permission requests.

The following error can occur when trying to load  ChilkatDotNet2.dll from a UNC path located on another computer. Could not load file or assembly ‘ChilkatDotNet2, Version=9.0.4.0, Culture=neutral, PublicKeyToken=eb5fc1fc52ef09bd’ or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417) It is because the .NET runtime does …

SocketError: WSAECONNRESET An existing connection was forcibly closed by the remote host.

Question: What is this error message? How can I avoid such error message in the future? ChilkatLog: ChangeRemoteDir: DllDate: Sep 1 2009 UnlockPrefix: ABC123FTP Username: something Component: .NET 2.0 dir: / SocketError: WSAECONNRESET An existing connection was forcibly closed by the remote host. Error sending on socket send_size: 7 Failed …

VB6 Runtime error 91 – Object variable or With block variable not set

A Chilkat method that returns an object must be checked for NULL ( also known as Nothing, nil, nada, etc. in other programming languages).  A NULL return value indicates failure.  In this case, check the contents of the object instance’s LastErrorText property. In Visual Basic 6.0, this is the error …

Username in LastErrorText

Question: I discovered that the program is trying to use the Computer System Username to instead of the username given in the program code to connect to the server. Answer: The Chilkat component is not trying to use the Computer System username. The LastErrorText will (almost) always include the process’s logged-on …