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 […]

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 […]

(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 […]