Could not load file or assembly ‘xxx.yyy’ or one of its dependencies…

Annoying message … if any…

Could not load file or assembly ‘xxx.yyy’ or one of its dependencies. An attempt was made to load a program with an incorrect format.
or in French :
Impossible de charger le fichier ou l’assembly ‘xxx.yyy’ ou une de ses dépendances. Tentative de chargement d’un programme de format incorrect.

Problem often appears when juggling between 32Bit and 64Bit applications.

The solution is :

Usually occurs on websites…

Edit :
If you do not want to change the compilation mode of your DLL’s or applications, another solution consist in changing The IIS application Pool to allow 32Bits application :


Leave a Reply