tags:

views:

24

answers:

1

IIS lets you run 32 bit applications on a 64 bit host using the enable32BitAppOnWin64 setting. How can I find out (in code) if this is set for the currently executing application pool?

I'm targeting C# on IIS 6 or better.

+1  A: 

Check IntPtr.Size, which will be 4 if your process is 32-bit. (Regardless of the processor or OS)

SLaks