您的位置:首页 > 编程语言 > ASP

在Windows 7/Server 2008 R2上部署asp.net 1.1程序

2010-07-21 23:15 573 查看
.NET 1.1只有32位的,Windows Server 2008 R2只有64位的,可以通过WOW64运行32位应用程序,按照How to install ASP.NET 1.1 with IIS7 on Vista and Windows 2008Workaround: Running ASP.NET 1.1 on Vista SP2/WS08 SP2的配置并不能正常运行,通过下面的方法可以正常运行asp.net 1.1程序,本文主要参考Installing .Net 1.1 applications on Windows Server 2008 R2

1、安装IIS元数据库和配置兼容性





2、按照以下顺序安装.NET 1.1

Microsoft® .NET Framework 1.1 版可再发行组件包

Microsoft Microsoft .NET Framework 1.1 版 简体中文语言包

Microsoft .NET Framework 1.1 Service Pack 1

.NET Framework 1.1 Service Pack 1 ASP.NET 安全更新

安装过程中都会出现程序兼容性对话框:





选择运行程序完成安装,1.1 sp1和安全更新补丁要求重启系统。

3、启用ISAPI和CGI限制,默认的ASP.NET v1.1.4322是禁用的,需要启用:







4、调整machine.config,需要调整.net 1.1的配置忽略IIS 7的配置,打开%windir%/Microsoft.NET/Framework/v1.1.4322/config/machine.config,在configSections的最后加入一节:

1: <section name="system.webServer" type="System.Configuration.IgnoreSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />


2: configSections>


5、调整应用程序的应用程序池为asp.net 1.1





6、修正applicationHost.config的bug

IIS运行时在64位系统下加载.NET配置文件的目录是Microsoft.Net/Framework64,.NET 1.1的配置在这个目录下不存在,把32位目录下的配置文件拷贝到这个目录下:

创建目录/Windows/Microsoft.net/Framework64/v1.1.4322/config

从/Windows/Microsoft.net/Framework/v1.1.4322/Config拷贝machine.config





做好了上述设置,我们的.NET 1.1程序就可以跑了。

.NET Framework version 1.1 for 64-bit operating systems

How to install ASP.NET 1.1 with IIS7 on Vista and Windows 2008

Workaround: Running ASP.NET 1.1 on Vista SP2/WS08 SP2
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: