CODEDIGEST
Home » Articles
Search
 

Technologies
 

Sponsored links
 

CodeDigest Navigation
 

Technology News
No News Feeds available at this time.
 

Community News
No News Feeds available at this time.
 
Aspnet_Regiis Utility

By Satheesh babu
Posted On Jun 12,2008
Article Rating:
Average Rating: 5
No of Ratings: 1
No of Comments: 1
Category: ASP.Net/IIS
Print this article.

Aspnet_Regiis Utility

It is the IIS registration tool that is used to register the ASP.Net with IIS. It will update the script map of an application to the coresponding ISAPI extensions to process the request given to the IIS. For example, “aspx” extension will be mapped to aspnet_isapi.dll and hence request for an aspx page to IIS will be given to aspnet_isapi. Refer the below figure for a sample script map.

You can bring the script map by right clicking Root directory or a website >  property > Click Configuration from “Home Directory” tab.

 

 This is the tool that is used to configure different versions of asp.net to run side by side in the same web server.

One thing to note here is, each version of framework will have its own Aspnet_Regiis utility packed in it i.e. if there is 1.1 and 2.0 framework installed on the box then each version will have its own Aspnet_Regiis utility.

 

For example, 1.1 framework utility will be in,

 

C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322

 

For example, 2.0 framework utility will be in,

 

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>

 

 




A Common Solution with Aspnet_Regiis utility

Executing this utility with –i switch will be a common solution for number of issues we face. One such example will be the following error,

The XML Page cannot be displayed.

Cannot view XML input using XSL style sheet.

 

Refer the below figure.

 

The above command will update the script map of the root directory of the web server and hence making all the website’s script map under the root updated with the current version. Since we have more than one version of ASP.Net (1.1,2.0 etc) there are possibilities that the web server may have websites running on different version of asp.net. The above command will update the script map of all the websites and thus making the other websites settings running in different version disturbed.

 

Configuring ASP.Net Side by Side Execution Using Aspnet_Regiis Utility

To achieve this we need to update the script map specific to the application/website instead of root level. It can be done by using “-s” switch.

 

Aspnet_regiis –s path

 

Example

Aspnet_regiis –s W3SVC/1/ROOT/CodeDigest

 

Where CodeDigest is the application or virtual directory whose script map has to be updated. Thus, the other websites configurations are intact.

 

So to register 1.1 framework,

 

C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322>Aspnet_regiis -s W3SVC/1/ROOT/CodeDigest

 

For 2.0 framework,

 

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>Aspnet_regiis -s W3SVC/1/ROOT/CodeDigest

 

Reference

Know more about aspnet_regiis here,

ASPNET_REGIIS

 

Happy Coding!!!

 

Similar Articles
You can contribute to CodeDiget.Com:
Donate to CodeDigest.com
Article Feedback
Comments
aspnet_regiis
IIS Web server does not serve ASP.NET sites. This is a common problem that I face everytime I do a reinstallation. There is a tool aspnet_regiis which will easily set the assicialtions. For more details I check this site that was helpful:- http://www.kanbal.com/index.php?/ASP.Net/iis-web-server-does-not-serve-aspnet-sites.html Hope this helps