is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)解决方法

本文描述了使用VS2005开发的Web程序在Win2008 R2 64位系统上部署时遇到的错误,并提供了详细的解决方案步骤。
情景:当我们用VS2005开发一个web程序时,在WIN2003或WIN2008的32位操作系统上运行正常时,而部署到win2008 R2的64位操作系统(注:目前win2008 R2只有64位操作系统)出现 

Server Error in '/CMISWebAdminDevelopment' Application.

is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)

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: is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)

Source Error:


An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:



Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42



solve method 如下:

1. Inside IIS (7) click on Application Pools.

2. Find the Application Pool that is configured for your web application in the list.

3. Select it, then click Advanced Settings on the right.

4. Second setting in the list: Enable 32-Bit Applications - must be set to True.
5.identity -should be set to localsystem

注:操作系统是英文版,所以大部分是英文信息。

转载于:https://www.cnblogs.com/Rockay/archive/2009/08/12/1544289.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值