IIS发布c#小坑,Could not load file or assembly 'xxxx' or one of its dependencies.
2017-12-25 13:07
1031 查看
当在IIS 7中发布C#web应用时,
出现错误:
Could not load file or assembly 'DatabaseAccess' or one of its dependencies. An attempt was made to load a program with an incorrect format.
原因是应用程序链接池 Application Pool调用的dll文件出现了错误,多是在于64位平台调用32位的dll引起的。
解决方式 : 找到需要发布的Web应用使用的 Application Pool,右键->高级设置->将"Enable 32-bit applications" 项目勾选。
出现错误:
Could not load file or assembly 'DatabaseAccess' or one of its dependencies. An attempt was made to load a program with an incorrect format.
原因是应用程序链接池 Application Pool调用的dll文件出现了错误,多是在于64位平台调用32位的dll引起的。
解决方式 : 找到需要发布的Web应用使用的 Application Pool,右键->高级设置->将"Enable 32-bit applications" 项目勾选。
相关文章推荐
- iis站点运行错误:Could not load file or assembly 'EntityFramework' or one of its dependencies.
- Could not load file or assembly 'App_Web_xxxx' or one of its dependencies. The system cannot find the file specified.
- 解决Could not load file or assembly 'App_Web_xxxx' or one of its dependencies.
- Could not load file or assembly 'XXX' or one of its dependencies.
- Could not load file or assembly 'XXX' or one of its dependencies. Access is denied.
- Could not load file or assembly or one of its dependencies. 试图加载格式不正确的程序。
- Exception about "Could not load file or assembly Namespace.Components' or one of its dependencies."
- Could not load file or assembly ‘AjaxControlToolkit’ or one of its dependencies. The parameter is incorrect. (Exception
- Could not load file or assembly or one of its dependencies. 试图加载格式不正确的程序。
- Could not load file or assembly ‘AjaxControlToolkit’ or one of its dependencies. The parameter is incorrect.
- Could not load file or assembly or one of its dependencies. 试图加载格式不正确的程序。
- BadImageFormatException : Could not load file or assembly or one of its dependencies.
- 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 'Oracle.DataAccess' or one of its dependencies. An attempt was
- NCO3.0连接SAP报错处理Could not load file or assembly 'sapnco' or one of its dependencies
- Could not load file or assembly "xxx" or one of its dependencies. The system cannot find the file sp
- Could not load file or assembly "\win32_x86\dotnet1\crdb_adoplus.dll' or one of its dependencies.
- Could not load file or assembly 'xxx' or one of its dependencies. 试图加载格式不正确的程序。
- “Could not load file or assembly'OracleDAL' or one of its dependencies. 系统找不到指定文件”解决方法