Could not load file or assembly or one of its dependencies. 试图加载格式不正确的程序。
2015-01-27 09:10
851 查看
当我把编译好的程序托管到IIS下后,访问时出现了以下问题,服务器环境是IIS 7,操作系统 Windows server 2008 r2 64位。
出现上述问题的原因是,所加载的程序集中有32位的,也有64位的,IIS 7 程序池 在Windows下.Net FrameWork是64位的,要想正确使用,需要对程序池进行配置。如下图所示:
出现上述问题的原因是,所加载的程序集中有32位的,也有64位的,IIS 7 程序池 在Windows下.Net FrameWork是64位的,要想正确使用,需要对程序池进行配置。如下图所示:
相关文章推荐
- Could not load file or assembly 'xxx' or one of its dependencies. 试图加载格式不正确的程序。
- Could not load file or assembly or one of its dependencies. 试图加载格式不正确的程序。
- Could not load file or assembly or one of its dependencies. 试图加载格式不正确的程序。
- Could not load file or assembly or one of its dependencies. 试图加载格式不正确的程序。
- Could not load file or assembly or one of its dependencies. 试图加载格式不正确的程序。
- SQLite 解决:Could not load file or assembly 'System.Data.SQLite ... 试图加载格式不正确的程序
- “Could not load file or assembly 。。。试图加载格式不正确的程序”的问题解决
- Could not load file or assembly 试图加载格式不正确的程序
- Could not load file or assembly 'XXXXXXXX' or one of its dependencies. 试图加载格式不正确的程
- SQLite 解决:Could not load file or assembly 'System.Data.SQLite ... 试图加载格式不正确的程序
- 错误处理:"Could not load file or assembly 'Oracle.DataAccess' or one of its dependencies. An attempt was
- Could not load file or assembly 'App_Web_xxxx' or one of its dependencies. The system cannot find the file specified.
- BadImageFormatException : Could not load file or assembly or one of its dependencies.
- Could not load file or assembly "\win32_x86\dotnet1\crdb_adoplus.dll' or one of its dependencies.
- Solution to "Could not load file or assembly or one of its dependencies. Access is denied"
- IIS发布c#小坑,Could not load file or assembly 'xxxx' or one of its dependencies.
- Could not load file or assembly 'XXX' or one of its dependencies. Access is denied.
- NCO3.0连接SAP报错处理Could not load file or assembly 'sapnco' or one of its dependencies
- “Could not load file or assembly'OracleDAL' or one of its dependencies. 系统找不到指定文件”解决方法
- Could not load file or assembly 'XXX' or one of its dependencies.