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:
- Unregister the the 64-bit framework with following command:
- Run the following command at a command prompt to enable 32-bit mode for web applications:
SET W3SVC/AppPools/Enable32bitAppOnWin64 1
- Register the 32-bit framework with the following command:
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:
- Create an application pool with the following properties:
- Enable 32-bit applications = True
- Managed pipeline mode = Integrated
- Assign the target application to this application pool so that the application can run under 32-bit mode.
- Check that the ISAPI/CGI restriction for aspnet_isapi.dll from the 32-bit framework folder is set to allowed.
- 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.