Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check if IIS is in 32bit or 64bit mode

Tags:

asp.net

iis-6

I'm trying to deploy a site to a 64bit OS. I'm deploying to IIS6. The site was developed on a 32bit server. The site deployed correctly however it's trying to access a COM component and that is failing.

I believe the error is occurring because the COM component is a 64bit version on the 64bit OS. And IIS6 is running in 32bit mode on the 64bit server.

I'd like to confirm this but I can't seem to find a definitive way to check if IIS6 is in 32bit mode or 64bit mode.

Would someone know the best way to check if IIS6 is in 64bit or 32bit mode?

EDIT: I'm using IIS6

like image 837
Sam Avatar asked May 10 '10 15:05

Sam


People also ask

Is IIS 32 or 64-bit?

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.

How do you tell if .NET application is 32 or 64-bit?

Run the application and launch the Task Manager to know if the process runs in 32-bit mode or 64-bit mode on a 64-bit machine. When "*32" is added to the 'image name', the process is running in 32-bit mode. Otherwise it is running in 64-bit mode.

How do I enable 32-bit applications on 64-bit IIS?

1) Start IIS and click on Application Pools. 2) Select CRM App Pool from the list of Application Pools. 3) Right-click on CRM App Pool and select Advanced Settings. 4) Set Enable 32-Bit Applications setting to True and click on OK button.


2 Answers

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.

like image 130
Amila Avatar answered Sep 22 '22 12:09

Amila


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

like image 40
GenEric35 Avatar answered Sep 20 '22 12:09

GenEric35