Condividi tramite


How to default existing and new IIS websites to ASP.NET 2.0 on Windows Server 2003

This assumes you already have IIS and .Net 2.0 Framework already installed.

The following commands will set ALL virtual server websites and ALL web service extension to run .Net 2.0 framework:

  1. Open the following directory:

    %drive% \WINNT\Microsoft.NET\Framework\v2.0.nnnnn

    where %drive% is the drive letter on which you installed Windows Server 2003 and nnnnn is the least significant version number of ASP.NET 2.0.

  2. To enable ASP.NET 2.0 in the IIS Web Service Extensions and use ASP.NET 2.0 with all virtual servers, run the following command:

    aspnet_regiis.exe –iru –enableaspnet_regiis.exe –i –enable

Source article that explains other common scenarios such as setting a specific site or subsites:
https://office.microsoft.com/en-us/assistance/HA100598511033.aspx?mode=print#Spec2all