100% Australian Windows Web Hosting
  • Knowledge Base

An attempt was made to load a program with an incorrect format 

Was this helpful? (3) (0)

You may receive the following error when loading an ASP.NET web site:

 An attempt was made to load a program with an incorrect format

This error can be caused by the following:

1. A DLL on the site is corrupt, try uploading the file again.
2. A DLL on the site is compiled in 32bit mode and the server is 64bit.
By default all our IIS7 servers are 64bit, so make sure all DLLs being used are 64bit also.
If you have built the DLL yourself, make sure the CPU type in the compilation settings is set to AnyCPU