It's easy to enable 32bit ASP.NET on Windows Server 2003 64-bit 64 bit if you know the proper steps.
In this article i'll take you through step by step on enabling 32 bit / 32bit ASP.NET 2.0 on Windows Server 2003 64-bit 64
In order for you to execute the 32bit ASP.net 2.0 WebPages on a 64 Bit Windows 2003 you must do the following:
1) Make sure that Windows 32bit files area installed on the server
to accomplish this look for the following folders
c:\Windows\Micfosoft.Net\Framework\v2.0.50727 - or newer (this is the 32bit version)
c:\Windows\Microsoft.Net\Frameword64\v2.0.50727
If both these are not installed, go to [Add Remove Programs] uninstall asp.net 2.0 and reinstall, and then
REBOOT
You should then have both of the folders listed above
2) In IIS Manager enable the Web Services Extensions as shown in the picture below.
If you only see ASP.NET 2.0 32bit in the Web Service Extensions then skip to step 4.
If you only see ASP.NET 2.0 in the Web Service Extensions (which is the 64bit version) that's ok because i'm going to tell you how to setup the 32bit version below.
Figure 1
Note: Microsoft and IIS do not support 64bit & 32bit execution at the same time so you can only use one or the other you must set IIS to run in 32bit mode or 64bit mode, you can not have both.
Note: You cannot install ASP.NET 32bit DLL's until you set a switch in the registry on the server into 32bit mode.
Attempting to do so will result in an error stating that you cannot install a 32bit app on a 64 bit server or something like that.
3) Open a DOS window and change directories to the IIS server admin scripts folder
Which is usually C:\Inetpub\AdminScripts
Now execute the following command to switch the server and IIS into 32bit mode
(true means 32bit false restores it to 64bit)
cscript.exe adsutil.vbs set W3SVC/AppPools/Enable32BitAppOnWin64 true
After executing the script above you must register the 32bit version of ASP.NET 2.0.
Navigate to c:\Windows\Microsoft.Net\Framework\v2.0.50727 -or newer - this is the 32bit version
Run
aspnet_regiis.exe -i to install asp.net 2.0 32bit
Note: You cannot install ASP.NET 32bit until you set the server into 32bit mode as show above
Executing the above script adds a new item in the IIS web server extensions which clearly states 32bit
See [Figure 1] Above
4) Now Open IIS Manager and click on Web Server Extensions [Click on ASP.Net v2.0.50727 (32-bit)]
then click the [ALLOW] button.
Now create your Website or virtual directory and set your permissions and you should now be able to execute your 32-bit ASP.NET 2.x webpages on a 64bit Windows 2003 64-bit web server.
Don't forget to set the website to run in asp.net 2.0 on the ASP.Net Tab
posted @ Friday, June 15, 2007 12:00 AM