Chilkat .NET for x64 (64-bit Windows)

The “An attempt was made to load a program with an incorrect format.” indicates that your program attempted to load a win32 assembly on an x64 Windows OS, or the reverse. There is a separate Chilkat .NET assembly also named ChilkatDotNet2.dll for 64-bit Windows.  It may be downloaded at: http://www.chilkatsoft.com/downloads.asp This is for the 2.0/3.5 (or greater) Framework.  There is […]

Failed to get initial SMTP response..

Question: I have 21 text message service applications running on a single PC. These apps send out weather alerts to radio station listeners several times a day. Each may have a few subscribers to a few hundred subscribers, so at the top of the hour, the messages for the people signed up for that hour are sent. I sometimes get […]

SSH: Failed to read 1st key exchange packet

Here’s an explanation for the following error message: Established TCP/IP connection with SSH server FromServer: SSH-1.5-Cisco-1.25 numBytesRequested: 8 Connection closed by server. Failed to read data on SSH connection. Failed to read 1st key exchange packet Failed. The error message indicates that as soon as the TCP/IP socket connection was accepted by the SSH server, it then decided to disconnect. […]

WriteZipAndClose – Failed to move Zip file

When Chilkat Zip writes a .zip, it first writes to a temporary file. (The location of the temporary file is controlled by the zip.TempDir property.) After the .zip is successfully written to the temp file, it is then renamed (i.e. moved) to the output filename. The reason for doing this is to safeguard an existing .zip when rewriting. If writing […]

Server object error ‘ASP 0177 : 800401f3’

This error is occasionally reported by customers using classic ASP: Server object error ‘ASP 0177 : 800401f3’ Server.CreateObject Failed The call to CreateObject in ASP looks like this: set cryptObj = Server.CreateObject(“Chilkat.Crypt2″) The problem is that IIS was unable to lookup “Chilkat.Crypt2” in the registry in order to get the location of the DLL file. There are many possible reasons […]

Object reference not set to an instance of an object.

Any Chilkat method that returns an object will return a NULL reference if the method failed. You should check for NULL and then examine the contents of the LastErrorText property. Here are examples in various programming languages: C# // Fetch the emails into a bundle object: Chilkat.EmailBundle bundle = null; bundle = imap.FetchBundle(messageSet); if (bundle == null ) { MessageBox.Show(imap.LastErrorText); […]

No socket exists for sending

If the error message “No socket exists for sending” is found in the LastErrorText, it means that the component is not connected to the server. For example, if Ftp2.PutFile is called to upload a file, but Ftp2.Connect is never called to establish the connection, the “No socket exists for sending” would be found in the LastErrorText. Another possibility is that […]

Google that Error Message

Debugging Hint: In any programming language, in any environment, regardless of whether it’s a Chilkat error message or something from Microsoft, if you don’t understand the error message try Googling it. For example: Type this into Google: “Object Variable or With Block Variable Not Set” (without the quotes) The 1st result provides all the information you’ll need to know about […]