在Win2008上运行ASP.NET 1.1程序

在以前的文章《将Web站点由IIS6迁移至IIS7》中已经提到了关于在Win2008下运行ASP.NET 1.1程序的问题,但还不够完整,所以在这里从新整理一下。html

1.要安装.net framework 1.1以及.net framework 1.1 sp1,在安装的时候会报一个兼容性问题的提示,这里不须要理会,继续安装便可。web

2.修改配置文件。在machine.config里加上如下节点:app

<section name="system.webServer" type="System.Configuration.IgnoreSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />操作系统

3.在iis中注册.net framework 1.1。在cmd中进入C:\Windows\Microsoft.NET\Framework\v1.1.4322,运行aspnet_regiis -ir.net

在iis中找到“ISAPI和CGI限制”配置项,在ASP.NET v1.1.4322上点右键,选择容许。htm

4.等部署应用程序的时候就会发如今应用程序池编辑页面里没法选择.net framework 1.1版本。blog

这时能够经过执行appcmd来实现.net framework版本切换,执行部署

appcmd set apppool "DefaultAppPool" /managedruntimeversion:v1.1命令,以后你就会发现.net framework版本已经改为了1.1。get

5.对于64位操做系统还有2个注意点。cmd

首先须要在C:\Windows\Microsoft.NET\Framework64\v1.1.4322 目录下新建一个config目录,并把C:\Windows\Microsoft.NET\Framework\v1.1.4322\CONFIG里的machine.config拷过去。

此外还要在应用程序池高级设置里将“启用32位应用程序”选择为True。

相关文章
相关标签/搜索