ASP.NET Regiis

ASP.NET Regiis

Aspnet_regiis.exe

  • ASP.NET IIS Registration Tool included with Vista, Windows 7, and Windows Server editions
  • Located in C:\Windows\Microsoft.NET\Framework\v2.0.50727 or v4.0.30319
  • Used to perform a number of configuration operations
    • Update the script maps for an ASP.NET application to point to the ASP.NET ISAPI version that is associated with the tool
    • Display the status of all installed versions of ASP. NET on the system
    • Register the ASP.NET version (x86 or x64) that is coupled with the tool
    • Create client-script directories

Aspnet_regiis Commands

  • Use aspnet_regiis -lv to list all versions of ASP.NET that are installed on the machine, with status and installation path
  • Use aspnet_regiis -iru to install a particular version of ASP.NET
    • This command will not change the IIS configuration for existing applications that use older versions of ASP.NET
    • This command is useful for re-registering ASP.NET with IIS when IIS is installed after .NET Framework or when IIS needs to be re-installed
  • If you see the message "Aspnet_regiis.exe is not recognized as an internal or external command, operable program or batch file.", switch to the C:\Windows\Microsoft.NET\Framework64\v2.0.50727 directory before issuing the command or type "C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Aspnet_regiis.exe -i" at the command prompt.

Note: There are two IIS Registration Tools that ship with the .NET Framework; one for standard systems and one for 64-bit systems. This example used the tool for 64-bit systems,which is located in the Framework64 directory of the Microsoft.NET directory inside the Windows folder

Sources