My ASP.NET application works fine when run from Visual Studio, but after deploying in IIS, it throws an error like this:

Could not load file or assembly "ChilkatDotNet45.dll" or one of its dependency. An attempt was made to load a program with an incorrect format

If I follow these steps:

  • Visual Studio – Tools – Options – Projects and Solutions – Web Projects
  • Select “Use the 64 bit version of IIS Express for web sites and projects”

Then the project not run in Visual Studio and throws the same error.

2 Answers

I had the same Problem on the IIS Server you need to Install C++ RunTime.

For More Information see

3

I had same error. First I installed chilkat-win64 and get error. After I installed chilkat-win32 error gone. Hope it help

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.