[转]How to setup ASP.NET v1.1 (Visual Studio .NET 2003) projects on IIS7 (Vista)

  1. Ensure that .NET 1.1 --->SP1<--- is properly installed.
    • Vista does not include .NET v1.1 by default.
    • Because .NET 1.1 is not included by default, .NET v1.1 *SP1* is also not included.
    • Without SP1, W3WP.exe will crash when running an appPool under v1.1 due to DEP
    • To check this, make sure that "c:/Windows/Microsoft.NET/Framework/v1.1.4322/mscorsvr.dll" is version "1.1.4322.2032" or higher.
    • Unless you are 100% sure that SP1 for .NET is installed, you *really* should double-check this.
  2. Enable IIS 6.0 compatibility
    • Open "Control Panel"
    • Double-click "Programs and Features"
    • Expand "Internet Information Services"
    • Expand "Web Management Tools"
    • Check "IIS 6 Management Compatibility"
  3. Register v1.1 with IIS
    • Open a CMD prompt
    • Change your directory to c:/Windows/MIcrosoft.net/Framework/v1.1.4322
    • Run "aspnet_regiis -ir -enable"
    • "ir" registers v1.1 with IIS but doesn't change any existing script mappings
    • "enable" marks aspnet_isapi.dll as "Allowed" under "ISAPI and CGI Restrictions"
    • aspnet_regiis should also create a new AppPool under "Application Pools" called "ASP.NET 1.1" that is configured with the "Classic" pipline, and "Enable32BitAppOnWin64" set to true if a 64-bit OS.
  4. Make the new "ASP.NET 1.1" appPool the default.
    • Open the IIS manager
    • Select the "Web Sites" folder.
    • Under "Actions" on the upper right, click "Set Web Site Defaults..."
    • Change the "Application Pool" setting to "ASP.NET 1.1"
  5.  **Alternative step to 4** - Change the AppPool to "ASP.NET 1.1" after creating the ASP.NET project instead of making it the default.
    • Create the v1.1 ASP.NET project via Visual Studio. Attempting to run the project at this point will fail if the 1.1 appPool is not the default.
    • Open the IIS manager.
    • Right-click the newly create application directory and choose "Advanced Settings"
    • Change the "Application Pool" to "ASP.NET 1.1"
    • Go back to Visual Studio and attempt to run/debug project.

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值