I've built a Windows service as "Any CPU". Why does it run in 32-bit mode on my 64 bit machine?

Posted by Mark on Stack Overflow See other posts from Stack Overflow or by Mark
Published on 2010-03-25T22:32:07Z Indexed on 2010/03/25 22:43 UTC
Read the original article Hit count: 161

Filed under:
|
|
|

I've built a Windows service as "Any CPU". However, when I run it on my 64 bit machine it runs in 32 bit. How can I fix it? I'm using .NET and C#, and my operating system is Windows 2008 R2.

If I build it in x64 it correctly loads in 64 bit mode. However, "Any Cpu" -- which is what I want -- loads in 32 bit, even though the machine it's running on perfectly supports 64 bit.

Thanks for any help.

© Stack Overflow or respective owner

Related posts about .NET

Related posts about x64