Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: ASP.NET
Expertise: Advanced
Sep 17, 2009

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.NET\Framework64\[VersionFolder]\aspnet_regiis.exe -u
  2. Run the following command at a command prompt to enable 32-bit mode for web applications:
    %windir%\system32\cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs 
       SET W3SVC/AppPools/Enable32bitAppOnWin64 1
  3. Register the 32-bit framework with the following command:
    %windir%\Microsoft.NET\Framework\[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.

Prafulla Doye
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap