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

↘锁芯ラ 提交于 2019-12-06 09:56:58

问题


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:

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

-EPPlus

-itextsharp

Notes:

-The application pool has the following config:

Help please :(


回答1:


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



来源:https://stackoverflow.com/questions/20158318/could-not-load-file-or-assembly-or-one-of-its-dependencies-an-attempt-was

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!