IIS32位,64位模式下切换

若想程序运行于IIS32位模式下,即运行在.net framwork32位下进行如下配置:
1.cscript %systemdrive%\inetpub\adminscripts\adsutil.vbs set w3svc/appPools/enable32bitapponwin64 1 修改IIS配置,允许32位程序运行
2.C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis -i  为IIS注册asp.net32。注册后在IIS的web扩展里显示的是Asp.net2.0.*32bit。
3.Web扩展里允许 Asp.net2.0.*32bit运行。运行的是w3wp32.exe进程。
二.64位模式
1.cscript %systemdrive%\inetpub\adminscripts\adsutil.vbs set w3svc/appPools/enable32bitapponwin64 0 默认就是0,若原来运行了32位程序,则需要重新设置为0。
2.C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\aspnet_regiis - i  为IIS注册64为Asp.NET。注册了64位ASP.NET的IIS在Web扩展里显示的是Asp.net2.0.*。
3.Web扩展里允许 Asp.net2.0.*运行。运行的是w3wp.exe进程。
posted @ 2011-05-10 14:13  B.Zhou  阅读(361)  评论(0编辑  收藏  举报