简体   繁体   English

无法加载文件或程序集“...”或其依赖项之一。 试图加载格式不正确的程序

[英]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).我正在尝试将 NET 4.0 MVC 4 应用程序部署到 IIS 服务器(7.5 版)上。 I get the following error:我收到以下错误:

在此处输入图片说明

The server is running Windows 7 64 bits.服务器正在运行 Windows 7 64 位。 I'm using two "special" libraries:我正在使用两个“特殊”库:

-EPPlus -EPPlus

-itextsharp -itextsharp

Notes:笔记:

-The application pool has the following config: - 应用程序池具有以下配置:

在此处输入图片说明

Help please :(请帮忙 :(

Probably, you are trying to load x32 DLL.可能,您正在尝试加载 x32 DLL。 Try to change "Enable 32-bit Applications" to "true".尝试将“启用 32 位应用程序”更改为“真”。

On your project, right-click, and in the properties menu, change the platform target to any CPU.在您的项目上,右键单击,然后在属性菜单中,将平台目标更改为任何 CPU。

在此处输入图片说明

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法加载文件或程序集xxx或其依赖项之一。 试图加载格式错误的程序。 - Could not load file or assembly xxx or one of its dependencies. An attempt was made to load a program with an incorrect format. 无法加载文件或程序集“xxx”或其依赖项之一。 试图加载格式不正确的程序 - Could not load file or assembly 'xxx' or one of its dependencies. An attempt was made to load a program with an incorrect format BadImageFormatException 无法加载文件或程序集或其依赖项之一。 试图加载格式不正确的程序 - BadImageFormatException Could not load file or assembly or one of its dependencies. An attempt was made to load a program with an incorrect format 无法加载文件或程序集“ MWArray”或其依赖项之一。 试图加载格式错误的程序 - Could not load file or assembly 'MWArray' or one of its dependencies. An attempt was made to load a program with an incorrect format 无法加载文件或程序集“sapnco”或其依赖项之一。 试图加载格式不正确的程序 - Could not load file or assembly 'sapnco' or one of its dependencies. An attempt was made to load a program with an incorrect format 无法加载文件或程序集“SharpSvn”或其依赖项之一。 尝试加载格式不正确的程序 - Could not load file or assembly 'SharpSvn' or one of its dependencies. An attempt was made to load a program with an incorrect format 无法加载文件或程序集“ MyLibrary”或其依赖项之一。 试图加载格式错误的程序 - Could not load file or assembly 'MyLibrary' or one of its dependencies. An attempt was made to load a program with an incorrect format 无法加载文件或程序集“ Oracle.DataAccess”或其依赖项之一。 试图加载格式错误的程序。 缓存 - Could not load file or assembly 'Oracle.DataAccess' or one of its dependencies. An attempt was made to load a program with an incorrect format. Ncache 无法加载文件或程序集“ myApp.Web”或其依赖项之一。 试图加载格式错误的程序 - Could not load file or assembly 'myApp.Web' or one of its dependencies. An attempt was made to load a program with an incorrect format 无法加载文件或程序集“JsonFx.Json”或其依赖项之一。 尝试加载格式不正确的程序 - Could not load file or assembly 'JsonFx.Json' or one of its dependencies. An attempt was made to load a program with an incorrect format
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM