Friday, June 8, 2007

Change the script map of the asp.net application

Following options can be used to change the script map of a asp.net application.
1. Use IIS Manager.
step 1. Open the IIS manager windowstep 2. write click the asp.net app and choose the properties option.step 3. Go to the ASP.NET tab in the properties window and choose the appropriate version from the dropdown.

2. Use ASP.NET IIS Registration Tool (Aspnet_regiis.exe)
When multiple versions of the .NET Framework are executing side-by-side on a single computer, the ASP.NET ISAPI version mapped to an ASP.NET application determines which version of the common language runtime (CLR) is used for the application. The ASP.NET IIS Registration Tool (Aspnet_regiis.exe) allows an administrator or installation program to easily update the script maps for an ASP.NET application to point to the ASP.NET ISAPI version that is 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 that is coupled with the tool, create client-script directories, and perform other configuration operations.

For .Net Framework2.0
step 1. Go to the path -> %winDir%\Microsoft.Net\Framework\v2.0.50727\
step 2. Run following command-
aspnet_regiis.exe -s W3SVC/1/root/

Note- If an error occurs with the following description "The error indicates that this version of asp.net must be registered on the machine."

Try following command - aspnet_regiis -i

Above command installs the ASP.NET version that is associated with the ASP.NET IIS Registration tool and updates the script maps of all existing ASP.NET applications. Note that only applications that are currently mapped to an earlier version of ASP.NET are affected.

The following command installs the ASP.NET version that is associated with the tool, but it does not update the script maps of existing ASP.NET applications.

aspnet_regiis -ir

3. Use Denis Bauer's aspnet version switcher tool.
Following is the link to download this tool.http://www.denisbauer.com/NETTools/ASPNETVersionSwitcher.aspx

No comments: