I have an ASP.NET server that I do not have direct access to. How can I write a .NET application that will programmatically determine whether ASP.NET is running 32 bit vs. 64 bit?
Already answered here:
How do I tell if my application is running as a 32-bit or 64-bit application?
The easiest way is to do this:
Int32 addressWidth = IntPtr.Size * 8;
since IntPtr.Size
is 4 bytes on 32-bit architecture and 8 bytes on 64-bit architecture.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With