Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

How to enable the 64bit compatibility on IIS6 and IIS7?

0.00/5 (No votes)
21 Dec 2010 1  
Enabling 64bit compatiblity on IIS for 64bit ASP.NET applications
Sometimes, you will get the following error after deploying your web application (developed for 64 bit environment and if you referred to any GAC DLL in your application) on IIS 6 or IIS7.

C#
Could not find the path of
C:\Windows\assembly\GAC_MSIL_<Dll Name>_<GAC ID>\Bin


This error occurs because of your IIS currently not supporting 64bit applications, so you need to enable the 64bit compatibility on IIS and you can resolve this by using the following steps on different IIS versions based your requirements.

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

         cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs SET
         W3SVC/AppPools/Enable32bitAppOnWin64 0

Step 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.NET\Framework64\v2.0.50727
         \aspnet_regiis.exe -i

Step 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(if your application deployed on 
         windows 2003 or 2008).


For IIS7:

v
Step 1:  Open the Internet Information Service Manager  
         from Start Menu or Control Panel --> Administrative 
         Tools.
Step 2:  Expand  the Application Pools Node then find your Website 
         Application Pool then right click on it  then click on 
         Advanced Settings, it will popup the settings screen here you 
         need to set false for Enable32bitApplication.This settings may 
         affect your existing 32bit application,if you get any error on 
         your 32 applications then you reset the above setting and 
         create a new application pool just like existing on and use it 
         for 64bit with appropriate Enable32bitApplication setting
         (value must be false).

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here