Below is how you do it from IIS7 manager:
- Right click on the Application Pool and select
“Advanced Settings…” or select the same from the Actions pane after
selecting the Application pool
- Change the “Enable 32-bit Applications”
to True (if you want the application pool to spawn in a 32-bit mode)
- Click OK
Below is how you do from the AppCmd:
appcmd apppool set
/apppool.name:MyAppPool32bit /enable32BitAppOnWin64:true
appcmd apppool set
/apppool.name:MyAppPool32bit /enable32BitAppOnWin64:false
NOTE : By default, it is
false.
Most of you may already know how to see if the
process is really spun in a 32-bit mode in 64-bit OS. Yes, simple way is to open
the Task Manager and go to Processes tab – you would see the below:

Now, you may ask how does the correct version
of the DLLs picked up automatically. Open your applicationHost.config and search
for aspnet_filter. You would see the below:
<isapiFilters>
<filter name="ASP.Net_2.0.50727.0"
path="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_filter.dll"
enableCache="true" preCondition="bitness32" />
<filter name="ASP.Net_2.0.50727-64"
path="%windir%\Microsoft.NET\Framework64\v2.0.50727\aspnet_filter.dll"
enableCache="true" preCondition="bitness64" />
</isapiFilters>
The preCondition="bitness32"
or "bitness64" decides which ISAPI Filter to pick up for
corresponding modes. Same case with any DLL used, for example ISAPI Filter,
Modules, etc.
|