1. Home
  2. Cloud & Dedicated Servers
  3. General VPS
  4. How can I switch IIS from 64-bit mode to 32-bit or vice versa in a Windows VPS?

How can I switch IIS from 64-bit mode to 32-bit or vice versa in a Windows VPS?

IIS6 can support both 32-bit and 64-bit modes. To switch IIS mode, it is necessary to perform the following commands:

To enable 32-bit mode:

cscript %SYSTEMDRIVE%inetpubadminscriptsadsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 1

To enable 64-bit mode:

cscript %SYSTEMDRIVE%inetpubadminscriptsadsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 0

If you’re running an ASP.NET application you will also need to reconfigure ASP.NET Settings. Please note that ASP.NET 1.1 only supports 32-bit mode. ASP.NET 2.0 and above supports both 32-bit mode and 64-bit mode but can not run both 32-bit and 64-bit mode at the same time. If you need to run both ASP.NET 1.1 and ASP.NET 2.0 based sites, you’ll have to run IIS in 32-bit mode.

 

ASP.NET 1.1, 32-bit version

To run the 32-bit version of ASP.NET 1.1, follow these steps:

1. Click Start, click Run, type cmd, and then click OK.
2. Type the following command to enable the 32-bit mode:

cscript %SYSTEMDRIVE%inetpubadminscriptsadsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 1
3. Type the following command to install the version of ASP.NET 1.1 and to install the script maps at the IIS root and under:

%SYSTEMROOT%Microsoft.NETFrameworkv1.1.4322aspnet_regiis.exe -i
4. Make sure that the status of ASP.NET version 1.1.4322 is set to Allowed in the Web service extension list in Internet Information Services Manager.

 

ASP.NET 2.0, 32-bit version

To run the 32-bit version of ASP.NET 2.0, follow these steps:

1. Click Start, click Run, type cmd, and then click OK.
2. Type the following command to enable the 32-bit mode:

cscript %SYSTEMDRIVE%inetpubadminscriptsadsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 1
3. Type the following command to install the version of ASP.NET 2.0 (32-bit) and to install the script maps at the IIS root and under:

%SYSTEMROOT%Microsoft.NETFrameworkv2.0.50727aspnet_regiis.exe -i
4. Make sure that the status of ASP.NET version 2.0.50727 (32-bit) is set to Allowed in the Web service extension list in Internet Information Services Manager.

 

ASP.NET 2.0, 64-bit version

To run the 64-bit version of ASP.NET 2.0, follow these steps:

1. Click Start, click Run, type cmd, and then click OK.
2. Type the following command to disable the 32-bit mode:

cscript %SYSTEMDRIVE%inetpubadminscriptsadsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 0
3. Type the following command to install the version of ASP.NET 2.0 and to install the script maps at the IIS root and under:

%SYSTEMROOT%Microsoft.NETFramework64v2.0.50727aspnet_regiis.exe -i
4. Make sure that the status of ASP.NET version 2.0.50727 is set to Allowed in the Web service extension list in Internet Information Services Manager.
Note The build version of ASP.NET 2.0 may differ depending on what the currently released build version is. These steps are for build version 2.0.50727.

 

For more information about 64-bit versions of Windows and the 64-bit version of the .NET Framework, visit the following Microsoft Developer Network (MSDN) Web sites:

Content retrieved from: https://support.appliedi.net/kb/a100/how-can-i-switch-iis-from-64-bit-mode-to-32-bit-or-vice-versa-in-a-windows-vps.aspx.

Updated on November 11, 2019
Was this article helpful?

Related Articles

Customer Support Portal
Can't find the answer you're looking for? Don't worry we're here to help!
CONTACT SUPPORT