简体   繁体   中英

How I can re-run my C# AnyCPU application as 64 bit, if it's running as 32 bit (WOW64)?

I develop my application for 32 bit and 64 bit Windows. I have a problem: If my application is launched from a 32-bit process on 64-bit OS, my application will run as 32-bit. How I can re-run my C# AnyCPU application as 64 bit, if it's running as 32 bit (WOW64)?

  1. If it is a Windows application, then you can launch it from a 64-bit command window. You can find the 64-bit version of cmd.exe here: c:\windows\system32\cmd.exe (note, the 32-bit version is in c:\windows\SysWOW64\cmd.exe).

  2. If it is a web application, then you need to set the identity of the application pool to 64-bit.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM