tags:

views:

473

answers:

2

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

+1  A: 

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

GenEric35
+1  A: 

In .NET code (pre-V4) you can check the size of an IntPtr instance.

In V4 check Environment.Is64BitProcess and Environment.Is64BitOperatingSystem properties.

Richard