Register ASP.net latest version in IIS

ASP.net

ASP.net

A sysadmin recently mentioned to me:

“Every time I go to a website’s properties under IIS, on the ASP.net tab, I don’t seem to get access to Configure ASP.net buttons”

I gotta hand it to him, my mind instantly shouted out .. you have to register ASP.net with IIS.

Here’s how:

Step1: Locate the installed location of the latest ASP.net installation. Typically it is something like:
c:\windows\microsoft.net\framework\v4.x.xxxxx

Step2: Add that location you found to the system’s PATH environment variable (temporarily)

Step3: Open command prompt and type in:
aspnet_regiis -r

What the above command does is (afaik) IIS by itself doesn’t know anything about ASP.net so when the command is finished, IIS is sort of configured to understand all possible types of .Net framework languages, and can happily serve them.

Step4: Close command prompt

Step5: Restart your website

Step6: Access the website’s properties, and be on your way to configure IIS’s global and local ASP.net settings!

Another cool thing is that framework folder contains compilers like:

csc.exe for c#
vbc.exe for visual basic

that IIS can then hit and serve the websites. If you’re learning about aspnet_regiis.exe afresh, do type:

aspnet_regiis /?

to learn about the various options

Hope this helps someone in their attempt to understand ASP.net configuration under IIS, or you can be lazy like me and read all about it on MSDN

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s