CodeKicks.com
Focus on Microsoft Technologies - Tutorials, Articles, Code Samples.

Friday, April 03, 2009

ASP.NET IIS Registration Tool (IIS 6.0)

When multiple versions of the .NET Framework are executing side by side on a single computer, the ASP.NET ISAPI version that is scriptmapped to an ASP.NET application determines which version of the common language runtime is used for the application. The ASP.NET IIS Registration tool (Aspnet_regiis.exe) allows an administrator or installation program to easily update the scriptmaps for an ASP.NET application to point to the ASP.NET ISAPI version associated with the tool. The tool can also be used to display the status of all installed versions of ASP. NET, register the ASP.NET version coupled with the tool, create client-script directories, and perform other configuration operations.

Aspnet_regiis [options]

Examples

The following command installs the scriptmaps pointing to the ASP.NET version associated with Aspnet_regiis.exe to the SampleApp1 application and all its sub-applications.

Aspnet_regiis -s W3SVC/1/ROOT/SampleApp1


The following command only updates the scriptmaps for the SampleApp1 application, without affecting applications in subdirectories.



Aspnet_regiis -sn W3SVC/1/ROOT/SampleApp1


The following command installs the ASP.NET version associated with the tool and updates the scriptmaps of all existing ASP.NET applications. Note that only applications that are currently scriptmapped to an earlier version of ASP.NET are affected.



Aspnet_regiis -i


The following command installs the ASP.NET version associated with the tool, but does not update the scriptmaps of existing ASP.NET applications



Aspnet_regiis -ir


The following command displays the status and installation path of all versions of ASP.NET installed on the computer.



Aspnet_regiis -lv

Post a Comment