I've blogged before about 32-bit vs. 64-bit .NET under IIS and how different Framework-bitnesses need different Application Pools (AppPools).
Someone asked how you find out what AppPools are on a machine and how do you find out which ones are 32-bit? There's a number of ways, depending on your needs:
If you're running a batch file or command-line script and IIS7, you might use the standard IIS7 appcmd.exe tools. You'll need to be Administrator, of course, as we're talking about Web Server configuration here.
To list all AppPools:
c:\Windows\System32\inetsrv\appcmd list apppoolAPPPOOL "Joe" (MgdVersion:v2.0,MgdMode:Integrated,state:Started)APPPOOL "Sally" (MgdVersion:v1.1,MgdMode:Classic,state:Started)APPPOOL "Fred" (MgdVersion:v2.0,MgdMode:Integrated,state:Started)
To list just 32-bit AppPools:
c:\Windows\System32\inetsrv\appcmd list apppool /enable32BitAppOnWin64:trueAPPPOOL "Fred" (MgdVersion:v2.0,MgdMode:Integrated,state:Started)
Ads by The Lounge