正文

(转)在IIS7下配置ASP.NET v1.1 (VS2003)2008-07-08 19:48:00

【评论】 【打印】 【字体: 】 本文链接:http://blog.pfan.cn/tujun/36599.html

分享到:

文章转自http://www.cublog.cn/u/884/showart.php?id=261667

 

原文地址:http://blogs.iis.net/brian-murphy-booth/archive/2007/03/09/how-to-setup-asp-net-v1-1-visual-studio-net-2003-projects-on-iis7-vista.aspx
 

如果你不大熟悉 IIS 7.0 的配置, 要想让 ASP.NET 1.1 在 IIS 7.0 上正常运行应该是很难的. 安装VS.NET2003时你将会得到以下的一些错误:


Microsoft Development Environment
Error while trying to run project: Unable to start debugging on the web server. Could not start ASP.NET or ATL Server debugging.
Verify that ASP.NET or ATL Server is correctly installed on the server.

Microsoft Developement Environment
Error while trying to run project: Unable to start debugging on the web server. You do not have permissions to debug the server.
Verify that you are a member of the "Debugger Users" group on the server.

ASP.NET Version Mismatch
Visual Studio .NET has detected that the Web server is running ASP.NET version 1.0. The Web application you are creating or opening can be configured to be compliant with ASP.NET 1.0.
However, the application will not be able to use new features from ASP.NET 1.1.

想避免这些错误, 按以下步骤.

  1. 确认 .NET 1.1 SP1 已经正常安装.
    • Vista 默认不包含.NET v1.1, 当然也不包括 v1.1 SP1;
    • 如果没有 SP1环境, 在v1.1下运行一个app池将因为DEP而导致W3WP.exe 崩溃;
    • 要确认这一点, 检查"c:\Windows\Microsoft.NET\Framework\v1.1.4322\mscorsvr.dll" 文件的版本是"1.1.4322.2032" 或更高.
  2. 启用 IIS 6.0 compatibility
    • 打开 Control Panel - Programs and Features
    • 选中 Internet Information Services - Web Management Tools - IIS 6 Management Compatibility
  3. 在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;
  4. 确认新"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, 运行或调试这个项目.

 

 

需要在Vista中使用VS2003来开发的话,则需要安装.NET 1.1 sp1。
下面是需要的几个东东的链接:

  • .NET Framework Version 1.1 Redistributable Package
  • .NET Framework Version 1.1 Service Pack 1
  • ASP.NET Security Update for .NET Framework 1.1 SP1
  • 阅读(6184) | 评论(0)


    版权声明:编程爱好者网站为此博客服务提供商,如本文牵涉到版权问题,编程爱好者网站不承担相关责任,如有版权问题请直接与本文作者联系解决。谢谢!

    评论

    暂无评论
    您需要登录后才能评论,请 登录 或者 注册