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.

Share the Post:
data observability

Data Observability Explained

Data is the lifeblood of any successful business, as it is the driving force behind critical decision-making, insight generation, and strategic development. However, due to its intricate nature, ensuring the

Heading photo, Metadata.

What is Metadata?

What is metadata? Well, It’s an odd concept to wrap your head around. Metadata is essentially the secondary layer of data that tracks details about the “regular” data. The regular