In IIS6, this was a pain area. On a 64-bit Windows 2003 Server, you cannot run worker processes in both 32-bit mode and as well as 64 bit mode. Either only one of them was possible. |
|
This was possible by the below Metabase Key which would be applied to the W3SVC/AppPools node. W3SVC/AppPools/enable32BitAppOnWin64 : true | false Read more how to do this in IIS 6.0 here. But, in IIS7, you can run 32-bit and 64-bit worker processes simultaneously. Let’s see how to do it. You have the same enable32BitAppOnWin64 property for the applicationPools in the applicationHost.config. Now, you can set this for individual application pools. Below is my sample configuration: <applicationPools> <add name="MyAppPool32bit" autoStart="true" enable32BitAppOnWin64="true" /> <add name="MyAppPool64bit" autoStart="true" enable32BitAppOnWin64="false" /> <applicationPoolDefaults> <processModel identityType="NetworkService" /> applicationPoolDefaults> applicationPools> | |
Below is how you do it from IIS7 manager:
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: 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. |
Popular Posts
- How to setting Internet and MMS for iPhone (Maxis, DiGi, Celcom, Xpax, U Mobile)
- How to setup MMS (CELCOM) for Sony Ericsson W810
- How do I install ArcGIS Desktop 9.3 for use with a local license?
- How to solve unable to receive MMS (Celcom,Maxis,Digi) messages on Blackberry Torch
- How to configure BlackBerry As Modem(Maxis) using Blackberry Desktop
Tuesday, September 28, 2010
IIS7 - Running 32-bit and 64-bit ASP.NET versions at the same time on different worker processes
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment