Quick guide: Installing ASP.NET v1.1 on Windows Vista

9 November 2006

[RAW]

Vista ships with .NET Framework 2.0 in the box, but ASP.NET v1.1 is still fully supported if you need it-and here's how.

If you're trying to diagnose this problem, the error message you will receive without allowing v1.1 is a 404.2 – Not Found; the description is "the page you are requesting cannot be served because of the ISAPI and CGI Restriction list settings on the Web server."

Error message when v1.1 is not enabled

Install .NET Framework v1.1 & v1.1 SP1

Prerequisite: You have installed IIS on the machine already (Control Panel – Add/Remove Windows Features)

Enable ASP.NET v1.1 in InetMgr

Run "InetMgr" (even though the Run menu's not in the Start Menu by default, you can still reach it by pressing [ Windows key ] + [ R ])

Click on your computer name in the tree, not the web site. This should be the top-most tree element. Double-click on "ISAPI and CGI Restrictions," this is an icon in the center of the screen within the IIS group.

v1.1 Enable Restrictions

Right-click on the ASP.NET list item entry and "Allow" it. You do not need to reset the web server.

Right click and Allow

You can also do this from an elevated command prompt using AppCmd.exe:

%windir%\system32\inetsrv\appcmd set config -section:isapiCgiRestriction /+.[path='%windir%\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll',allowed='true']

Creating v1.1 Applications

Another obvious note, within the IIS Manager, you need to specify the application pool of choice when adding a new application. There is no concept of a v1.1 "integrated" mode, so your choices with v1.1 installed are: Integrated Pipeline 2.0, Classic/ISAPI 2.0, and Classic/ISAPI 1.1.

Creating an ASP.NET v1.1 Application in InetMgr 7

Simply select the v1.1 application pool and you're good to go!

[/RAW]

Jeff Wilcox is a Software Engineer at Microsoft in the Open Source Programs Office (OSPO), helping Microsoft engineers use, contribute to and release open source at scale.

comments powered by Disqus