I’m having a bit of a conundrum here.
My dev box is 64bit, windows 7.
All my projects are compiled as “Any CPU”.
The project is referencing 64bit versions of 3rd party software
When I run through my unit tests that do not use any web references it works as it should. I can tell it’s running as a 64bit process. I can call my commands, and they work fine.
However, whenever I run a test that invokes a web service call to my own PC, that code comes back telling me it’s running as 32bit/x86. The web service is the exact same as the unit tests, but it tests the web service / SOAP proxies, (really it calls the same code, except through a web service).
I’ve been beating my head for a bit trying to figure this out. I’ve checked all 3rd party dll’s, and ensured they are compiled as 32/64bit, and verified through a quick unit test. I’m not sure why anything through IIS turns it to be 32 bit.
It seems anything going through IIS runs the code as 32bit versus 64 bit.
Any thoughts?
I’ve run into the issue of 32-Bit DLLs that are referenced in AnyCPU compilations for Windows 7 64-Bit causing my app to error. I found that I needed to do the following:
Open IIS > Drill into Application Pools > {your app pool} > Advanced Settings and set the Enable 32-Bit Applications property to True.
Not sure if this is related to your issue specifically or not, but might be something to check out?