Monday, April 25, 2011

ASP.net Tab Missing in IIS 6 on 64-bit Windows

We are switching our main website over to Sitecore CMS 6.4 which uses asp.net 4.0. Problem is that our development server is Windows 2003 x64, and is setup to use IIS in 32-bit mode. Apparently there is a bug (MS will call it a feature) which hides the ASP.NET tab in IIS when you have this particular configuration.

So long story short, to switch my individual site over to ASP.net 4.0 I had to use aspnet_regiis to manually set the framework version for that one site. Here's how:

  1. First we have to find the website iis path. Go into IIS, under the website properties under the "Website" tab there is the Logging section. Click on and right click on the "Properties" button. This will bring up the "Logging Properties" dialog which lists the name of the website at the bottom next to "Log file name" eg. W3SVCXXXX. Make a note of this.
  2. Open a command prompt to the c:\windows\Microsoft.net\Framework\v4.0.30319\ folder of your choice. (v2.x, or v4.x)
  3. Run aspnet_regiis -lk (that's -LK) this will list the websites and their paths and what version they are running. Use the name you found in step 1 to get the full path.
  4. Run aspnet_regiis -s PATH, e.g. aspnet_regiis -s W3SVC/123456789/root/ where PATH is the path you found in step 3.

That's it, hope this helps you.

12 comments:

Admin said...

Not Working!!!!!

Anonymous said...

Thank you for sharing this!

Anonymous said...

worked fine, thank you

Anonymous said...

Cheers - this saved me :-)

Regards
MD_Dev

Anonymous said...

thanks mate

Anonymous said...

Thanks working fine on my end :)

Anonymous said...

You are the King. Thankx!

Anonymous said...

Great.
Worked like a charm...

Anonymous said...

Thanks for sharing, Saved my time..

Anonymous said...

Worked Great!!

Thank You.

Anonymous said...

Thx from Germany. Works great!

Eric said...

Worked perfectly. Linking to you in my documentation (plus paraphrasing the steps in case the blog goes down). Thanks for the help!