In Visual Studio 2012 Applications compiled for x64 do not run on Windows XP x64 - by gc04

Status : 

  By Design<br /><br />
		The product team believes this item works according to its intended design.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 780700 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 3/5/2013 8:40:06 AM
Access Restriction Public


When you try to run an application that is compiled for x64 on Windows XP x64 you get an error message "C:\application.exe is not a valid Win32 application.".
Sign in to post a comment.
Posted by gc04 on 3/9/2013 at 9:49 PM

Setting the /Subsystem fixes the problem.
Posted by Felix [MSFT] on 3/8/2013 at 2:58 PM
Hello gc04,
Thank you for opening a connect report with us. In order for the binary to work on Windows XP, it needs to have a subsystem version. This version number is added to the binary during Linking (link.exe). The switch sets the value is /Subsystem ( However for the switch to work, it will need you to set /Subsystem as a pre-requisite.

Let me know if this information fixes your issue.


Felix Huang
VC++ Project & Build
Posted by Microsoft on 3/6/2013 at 12:26 AM
Thank you for submitting feedback on Visual Studio and .NET Framework. Your issue has been routed to the appropriate VS development team for investigation. We will contact you if we require any additional information.
Posted by Helen [MSFT] on 3/5/2013 at 11:50 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(