net 试图加载格式不正确的程序。(Exception from HRESULT: 0x8007000B)

本文探讨了在开发环境与部署环境差异导致的.NET程序加载错误问题,并提供了通过IIS设置解决该问题的方法。
原文: net 试图加载格式不正确的程序。(Exception from HRESULT: 0x8007000B)

 Server Error in '/' Application.


试图加载格式不正确的程序。 (Exception from HRESULT: 0x8007000B)

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.BadImageFormatException: 试图加载格式不正确的程序。 (Exception from HRESULT: 0x8007000B)

 

原因:开发环境和部署环境不同造成的(系统64bit 和 系统32bit)
解决方法:IIS》应用程序池》选中所用的程序池名称右击》高级设置》常规》启用32位应用程序,改为True。

posted on 2014-04-14 11:14 NET未来之路 阅读( ...) 评论( ...) 编辑 收藏

转载于:https://www.cnblogs.com/lonelyxmas/p/3663614.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值