devxlogo

Publishing 32-Bit ASP.NET Applications to a 64-Bit OS

Publishing 32-Bit ASP.NET Applications to a 64-Bit OS

It’s useful to know how to publish your 32-bit ASP.NET applications to a 64-bit operating system (OS). For example, suppose you want to publish to a Windows Server 2003 64-bit OS with IIS6.0. Here’s the procedure:

  1. Unregister the the 64-bit framework with following command:
    %windir%Microsoft.NETFramework64[VersionFolder]aspnet_regiis.exe -u
  2. Run the following command at a command prompt to enable 32-bit mode for web applications:
    %windir%system32cscript %SYSTEMDRIVE%inetpubadminscriptsadsutil.vbs    SET W3SVC/AppPools/Enable32bitAppOnWin64 1
  3. Register the 32-bit framework with the following command:
    %windir%Microsoft.NETFramework[VersionFolder]aspnet_regiis.exe -i

After performing the above steps, publish the web application as usual. Note the difference between the Framework and the Framework64 folder.

To publish to a machine running Windows Server 2008 64-Bit with IIS7.0, you don’t have to register the 32-bit version as both 32-bit and 64-bit versions run side by side. So, the procedure is:

  1. Create an application pool with the following properties:
    • Enable 32-bit applications = True
    • Managed pipeline mode = Integrated
  2. Assign the target application to this application pool so that the application can run under 32-bit mode.
  3. Check that the ISAPI/CGI restriction for aspnet_isapi.dll from the 32-bit framework folder is set to allowed.
  4. Ensure that Anonymous Authentication is enabled for the application.

After performing the preceding steps, your application should run properly with minimum IIS settings. You can specify other settings according to the application requirements.

See also  Why ChatGPT Is So Important Today
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist