最进将开发环境升级到windows server 2008。在配置iis7时死活出现DEP崩溃。查了下原来是没装.net framework 1.1 sp1所引起的。
郁闷,以为是系统挂了还重装了次。-_-
具体的配置步骤如下:
郁闷,以为是系统挂了还重装了次。-_-
具体的配置步骤如下:
- 确认 .NET 1.1 SP1 已经正常安装.
- 启用 IIS 6.0 compatibility
- 打开 Control Panel - Programs and Features
- 选中 Internet Information Services - Web Management Tools - IIS 6 Management Compatibility
- 在IIS中注册 v1.1
- 以Administrator身份运行命令行的High Mandatory Level;
- 进入c:\Windows\Microsoft.net\Framework\v1.1.4322
- 运行 aspnet_regiis -ir -enable, 其中"ir"选项保证在IIS7中注册v1.1时不改变现有的脚本映射, "enable" 打开 ISAPI and CGI Restrictions 的 Allow;
- aspnet_regiis 同时在Application Pools下创建一个新的名为"ASP.NET 1.1"的App池, 并将配置为 Classic pipline, 如果是64位操作系统将Enable32BitAppOnWin64设为 true;
- 确认新"ASP.NET 1.1" app 池为默认池
- 打开IIS manager - Web Sites;
- 在右上的Actions区点击Set Web Site Defaults...;
- Application Pool设为"ASP.NET 1.1"
- 用Visual Studio创建v1.1的asp.net项目后设置Application Pool (步骤4/5选一)
- 用Visual Studio创建v1.1的asp.net项目. 如果v1.1 app池不是缺省池时运行这个项目将失败;
- 打开IIS manager;
- 在新建的APP目录上右键选择 Advanced Settings;
- 将 Application Pool 设为 "ASP.NET 1.1";
- 回到Visual Studio, 运行或调试这个项目.