0
点赞
收藏
分享

微信扫一扫

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

NET 1.1只有32位的,Windows Server 2008 R2只有64位的,可以通过WOW64运行32位应用程序,按照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的配置并不能正常运行,通过下面的方法可以正常运行asp.net 1.1程序,本文主要参考Installing .Net 1.1 applications on Windows Server 2008 R2。

.NET 1.1只有32位的,Windows Server 2008 R2只有64位的,可以通过​​WOW64​​​运行32位应用程序,按照​​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​​​的配置并不能正常运行,通过下面的方法可以正常运行asp.net 1.1程序,本文主要参考​​Installing .Net 1.1 applications on Windows Server 2008 R2​​。

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

​​

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

​​

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 安全更新​​

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

​​

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

​​

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

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

​​

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

​​

 

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

​​

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

​​

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

​​

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

​​

做好了上述设置,我们的.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​​




举报

相关推荐

0 条评论