by , Blog, No Comments

Sep 29

Missing ASP.NET tab in IIS

iis_website_properties

by JR Data, Blog, Comments Off

Sep 29

I ran in this problem today, when configuring IIS for a site running on Windows Server 2003 Enterprise Edition x64 (64 bit). I had .NET Framework 4.0 installed on server and allowed ASP.NET v4.0 under Web Service Extensions.

When I entered IIS to change the application to run ASP.NET 4.0 instead of 2.0, I was somewhat confused. I did not find the ASP.NET tab when looking at the properties for the website. After some research on the web, I found many topics regarding this issue. A lot of solutions was to disable 32-bit support in IIS, whitch will bring back the tab. But that is not a solution if you need to run 32-bit applications, fx hosted Visual Basic 6 objects running under MSADC (RDS.DataSpace).

If you do not need to run 32-bit applications, you can simply disable 32-bit support by editing the META file for IIS (C:\WINDOWS\system32\inetsrv\MetaBase.xml). Search for setting Enable32BitAppOnWin64 = “TRUE” and set it to Enable32BitAppOnWin64 = “FALSE”. Restart IIS, and viola!

So, how if you need this to work for 32-bit then? Well, the only solution I found is to manually run aspnet_regiis for a particular website or virtual directory, specifying which version to run.

Configure a site to run ASP.NET 2.0
1. Open a dos prompt
2. Navigate to the following folder: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
3. Run the following command:  aspnet_regiis.exe -s W3SVC/{website identifier}/ROOT/{virtual directory}, fx:
aspnet_regiis.exe -s W3SVC/1475504337/ROOT/wsTRX

If succeeded, output will read:
Start registering ASP.NET (2.0.50727) recursively at W3SVC/1475504337/ROOT/wsTRX.
Finished registering ASP.NET (2.0.50727) recursively at W3SVC/1475504337/ROOT/wsTRX.

Configure a site to run ASP.NET 4.0
1. Open a dos prompt
2. Navigate to the following folder: C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319
3. Run the following command:  aspnet_regiis.exe -s W3SVC/{website identifier}/ROOT/{virtual directory}, fx:
aspnet_regiis.exe -s W3SVC/1475504337/ROOT/wsTRX

If succeeded, output will read:
Start registering ASP.NET (4.0.30319) recursively at W3SVC/1475504337/ROOT/wsTRX.
Finished registering ASP.NET (4.0.30319) recursively at W3SVC/1475504337/ROOT/wsTRX.

Hope this will help anyone having the same issue.

    Comments are closed.