As our application is running on the 64-bit machine having Windows 7 OS, system throws an error is not valid Win32 application. (Exception from HRESULT: 0x800700C1).
This error is generated in Windows application and Web application also. We are using .NET framework.
This is an "incorrect format" exception. See http://www.chilkatforum.com/questions/114/64bit-could-not-load-file-or-assembly-chilkatdotnet4-or-one-of-its-dependencies-an-attempt-was-made-to-load-a-program-with-an-incorrect-format
For ASP.NET applications, make sure to copy the correct Chilkat assembly (32-bit or 64-bit) that matches the mode IIS is running (i.e. 32-bit or 64-bit).