I have a Windows Service that I'm having this issue with.
- In Visual Studio I've set its Platform Target to 64 bit
- I've run CorFlags to verify that it is set correctly, I get this:
Version : v4.0.30319
CLR Header: 2.5
PE : PE32+
CorFlags : 0x1
ILONLY : 1
32BITREQ : 0
32BITPREF : 0
Signed : 0
I even tried running Corflags with the 32BITREQ-
and 32BITPREF-
flags to make sure it was set to what it's supposed to be but no dice. In the taskManager it shows up as:
MyServiceName (32 bit)
Service was installed with Topshelf 3.0 and is running on Windows Server 2012 R2 Standard. What's going on here?
TopShelf
, which may be running in 32 bit, and that is the one launching the 64 bit process. Should be worth looking on some better process viewer than task manager (something like Process Explorer) and see if there's your exe being launched by the 32 bit "task" – Sanctitude