How to check if IIS is in 32bit or 64bit mode
In .NET code (pre-V4) you can check the size of an IntPtr
instance.
In V4 check Environment.Is64BitProcess
and Environment.Is64BitOperatingSystem
properties.
Go to IIS Manager -> Application Pools -> select the app pool you want and -> Advanced Settings.
In there there's a setting called "Enable 32-bit Applications". If that's true, that means the worker process is forced to run in 32-bit. If the setting is false, then the app pool is running in 64-bit mode.
Also you can open up Task Manager and check w3wp.exe
. If it's shown as w3wp*32.exe
then it's 32-bit.
More info here.
which version of IIS? to check it manually just click the application pool, in properties or advanced properties
if you need to check it programatically you can do it through WMI:
/LM/W3SVC namespace on the
IIsWebService class
Enable32BitAppOnWin64 property
http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/5d306956-b2a2-4708-9bb9-72a395d474bb.mspx?mfr=true
Go to IIS using : Run command -> type "inetmgr" see the Application pool settings, Select the Framework of your application Click on Advance Setting on the right Menu option See the "Enable 32-Bit Application" option
If "Enable 32-Bit Application" - "TRUE" then your application executes in 32 bit, If "FALSE" then it executes in 64 Bit