.NET Assembly Incorrect Format Error

“Could not load file or assembly ‘ChilkatDotNet2, Version=, Culture=neutral, PublicKeyToken=eb5fc1fc52ef09bd’ or one of its dependencies. An attempt was made to load a program with an incorrect format.” The “incorrect format” error is a 32-bit vs. 64-bit mismatch.  It means the application is trying to load a 64-bit .NET assembly into a 32-bit process,  or the reverse (a 32-bit assembly into […]


NOTE: If this error occurred while trying to establish an FTP data connection, also see this: https://cknotes.com/?p=282 A WSAEWOULDBLOCK error when trying to establish a TCP/IP socket connection indicates one of the following conditions: A firewall at either the client or server side is blocking the connection. There is no server listening at the remote host:port to accept the connection […]

Error: This application has failed to start because the application configuration is incorrect. Reinstalling application may fix this problem.

This error message is usually an indication that the VC++ runtime is missing on a system. Downloading and installing the Microsoft VC++ runtime that matches the version you need will fix this problem.  To find the redistributable at microsoft.com, Google using this search string “visual c++ redistributable 2005”.  Substitute “2008”, “2002”, or “2003” for different versions… For example, one recent […]

Invalid class string / Invalid ProgID

This note applies to the instantiation of ActiveX components (not .NET assemblies). If a call to CreateObject (VBScript) or Server.CreateObject (ASP) or sp_OACreate (SQL) fails with the following errors: Invalid class string Invalid ProgID It indicates that the ActiveX has not been registered via regsvr32 on the computer, or the registry permissions on the ProgID key prevent the object from […]

FTP – WSAECONNRESET An existing connection was forcibly closed by the remote host.

One of the most common problems with FTP data transfers (including downloading directory listings) has to do with Passive vs. Active mode. Depending on your client/server/firewall situation, it’s probable that only one of the two modes will work (Active or Passive). Normally, if you choose the mode that doesn’t work, the data connection is blocked and you get a “WSAEWOULDBLOCK” […]