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 key pieces of information to allow you to know the […]

VB6 – Compile error: User-defined type not defined

If you see the following error on a Dim statement such as the following: Dim sa as New CkStringArray Make sure you add a reference to the appropriate Chilkat ActiveX. Select “Project–>References” from the VB6 menu and then check the checkbox next to the Chilkat ActiveX component to be referenced. (Select “Chilkat Util” for the CkStringArray object.) The complete mapping […]

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 not give full trust to the external UNC location.   You […]

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 to send CWD command Failed. Answer: This indicates that the […]

SFTP Server Error Messages – sometimes obscure and misleading

Two recent customer support issues prompted this post.  In both cases, the error reported by the SFTP server was both lacking in information as well as somewhat misleading.  One brand of server was: SSH-2.0-http://www.sshtools.com J2SSH [SERVER] The other was: SSH-2.0-WS_FTP-SSH_7.1 With the 1st SSH server, the following error occurred when trying to open a file: OpenFile: DllDate: Jun 10 2009 […]

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 username in the beginning, along with other pieces of information […]

425 Unable to build data connection: Connection timed out

This error can happen when trying to transfer a file or list a directory in Active (PORT) mode. The problem is usually solved by switching to Passive mode. Set the Ftp2.Passive property equal to True. Explanation of the problem: In Active mode, the data connection is setup like this: The client sends a PORT command telling the server the port […]

(FTP) WSAEACCES An attempt was made to access a socket in a way forbidden by its access permissions

Question (solution is below) Today one of my customer’s got the following connect error when running my application. This same application works just fine on my system as well as almost 100 others. It had run correctly on her computer until she installed an upgrade. The connect error is: Port: 21 Host: www.***.com sockError: 10013 Connect: failed WSAEACCES An attempt […]