飞川科技论坛

标题: 在Windows 7/Server 2008 R2上部署asp.net 1.1程序 [打印本页]

作者: shine    时间: 2010-7-22 09:15
标题: 在Windows 7/Server 2008 R2上部署asp.net 1.1程序
本帖最后由 shine 于 2010-7-22 09:22 编辑

.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元数据库和配置兼容性

[attach]320[/attach]

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

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

[attach]321[/attach]

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

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

[attach]322[/attach]

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" />

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

[attach]323[/attach]

6、修正applicationHost.config的bugIIS运行时在64位系统下加载.NET配置文件的目录是Microsoft.Net\Framework64,.NET 1.1的配置在这个目录下不存在,把32位目录下的配置文件拷贝到这个目录下:







欢迎光临 飞川科技论坛 (http://www.flysoft.cn/bbs/) Powered by Discuz! X3.2