How to Enable 32 bit ASP.NET on Windows Server 2003 64-bit 64 bit

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
Enable asp.net 32bit on 64bit server, Web Services Extention in IIS Manager

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
 Set Asp.net Version




posted @ Friday, June 15, 2007 12:00 AM

Print

Comments on this entry:

# re: How to Enable 32 bit ASP.NET on Windows Server 2003 64-bit 64 bit

Left by Rüya Tabiri at 11/26/2008 1:34 PM
Gravatar
Thank You...

# re: How to Enable 32 bit ASP.NET on Windows Server 2003 64-bit 64 bit

Left by Sebastià Prat at 12/23/2008 6:20 PM
Gravatar
Hello,

Thanks for your post!

Sebastià

# re: How to Enable 32 bit ASP.NET on Windows Server 2003 64-bit 64 bit

Left by smartant at 1/19/2009 11:29 PM
Gravatar
it's useful but it looks like the ASP tab is missing in my windows 2003 x64. So any instructions about how to enable that and configure the virtual server to uses specific web.config.

Thanks.

# re: How to Enable 32 bit ASP.NET on Windows Server 2003 64-bit 64 bit

Left by Larry at 1/30/2009 12:33 PM
Gravatar
Yes reinstall .net 2.x or 3.5 either with add repove programs or on the command line aspnet_regiis.exe /i to reinstall .net. it is usually located in the C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 or other folders.

# re: How to Enable 32 bit ASP.NET on Windows Server 2003 64-bit 64 bit

Left by Kevin at 2/5/2009 2:56 PM
Gravatar
Thanks this worked and solved my problem.

# re: How to Enable 32 bit ASP.NET on Windows Server 2003 64-bit 64 bit

Left by Saurabh at 5/12/2009 3:07 AM
Gravatar
Have u any about win-xp plateform..
I am getting
Could not load the assembly 'App_Web_l9k89pqf'. Make sure that it is compiled before accessing the page
error
after uploading my website.

# failed to enalble asp.net web extension

Left by om at 5/15/2009 5:39 AM
Gravatar
i have 64 bit win 2003 on which exchange server 2007 is installed , now i am going to install symantec mail security for exchange server,
during installation it gives error
"Failed enable asp.net web extension, installtion will not continue"

kindly, give me suggetions to solve this problem

# re: How to Enable 32 bit ASP.NET on Windows Server 2003 64-bit 64 bit

Left by Coupon Codes at 5/15/2009 10:52 AM
Gravatar
This is just the information I was looking for. Great resource, site bookmarked.

# re: How to Enable 32 bit ASP.NET on Windows Server 2003 64-bit 64 bit

Left by eee pc at 7/10/2009 3:45 PM
Gravatar
cheers that was useful getting windows to run on my pc

# re: How to Enable 32 bit ASP.NET on Windows Server 2003 64-bit 64 bit

Left by ecar insurance at 7/10/2009 4:16 PM
Gravatar
cheers i got that to work

# re: How to Enable 32 bit ASP.NET on Windows Server 2003 64-bit 64 bit

Left by Oleg at 7/24/2009 12:14 PM
Gravatar
Wneh I do aspnet_regiis I get an error:

The error indicates that IIS is not installed on the machine. Please install IIS before using this tool.
Finished installing ASP.NET (2.0.50727).

I'm using windows 2008 64-bits. does it matter?

# re: How to Enable 32 bit ASP.NET on Windows Server 2003 64-bit 64 bit

Left by sw at 9/10/2009 7:44 AM
Gravatar
C:\Inetpub\AdminScripts is missing but I have found it on another server (32bit). Can I copy it across and use it on the 64 bit server sucessfully?

# re: How to Enable 32 bit ASP.NET on Windows Server 2003 64-bit 64 bit

Left by Dana at 11/17/2009 6:54 AM
Gravatar
I have both problems listed above - my server is windows 2008 64-bits and when I try to run aspnet_regiis I see an error:

The error indicates that IIS is not installed on the machine. Please install IIS before using this tool.
Finished installing ASP.NET (2.0.50727).


Also there is not C:\Inetpub\AdminScripts folder on my server after installing.

then, I have IIS 7.0 - how to work with it? Thanks in advance

Your comment:



 (will not be displayed)


 
 
 
Please add 1 and 1 and type the answer here:
 

Live Comment Preview:

 
«February»
SunMonTueWedThuFriSat
31123456
78910111213
14151617181920
21222324252627
28123456
78910111213