Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not load file or assembly '...' or one of its dependencies. An attempt was made to load a program with an incorrect format

NOTE: I know this has been posted before but i have tried the solutions presented in other threads and haven't had any luck yet

I'm trying to deploy a NET 4.0 MVC 4 Application onto an IIS server (version 7.5). I get the following error:

enter image description here

The server is running Windows 7 64 bits. I'm using two "special" libraries:

-EPPlus

-itextsharp

Notes:

-The application pool has the following config:

enter image description here

Help please :(

like image 867
J_Ocampo Avatar asked Sep 20 '25 05:09

J_Ocampo


1 Answers

Probably, you are trying to load x32 DLL. Try to change "Enable 32-bit Applications" to "true".

like image 178
Den Pakizh Avatar answered Sep 22 '25 19:09

Den Pakizh