VS2012 compiled program, run on XP, ". exe is not a valid Win32 application" "not a valid Win32 application"

Source: Internet
Author: User
Tags win32

Upgrade vs2010 to vs2012, suddenly found that the build out of the application can not run, the prompt "is not a valid Win32 application" or "not a valid Win32 application".

Refer to the methods in the CSDN forum to find the following article:

Http://blogs.msdn.com/b/vsnetsetup/archive/2012/10/16/setup-exe-is-not-a-valid-win32-application.aspx

You would receive the below error message while running a ClickOnce bootstrapper created using Visual Studio/on Windo WS XP Systems.

Clickonce bootstrapper Engine (Setup.exe) that's shipped with Visual Studio-is no compatible with any OS below Win  Dows Vista. So, the above error message was expected and by design. The reason for this behavior are because the bootstrapper is compiled using the VC compiler and the Dev11 VC compiler does Not support Windows XP.

So the workaround are to install all the prerequisites manually and launch the ClickOnce application directly from Deployme NT manifest file (. application). Another workaround would is to create a sample ClickOnce application using Visual Studio OR Visual Studio-with T He same name as mentioned in Visual Studio and publish it. From the published location take the Setup.exe bootstrapper and replace the existing Setup.exe bootstrapper created using Visual Studio 2012

Microsoft VC Development Team has do work for make VCs compilers work on Windows XP in Visual Studio Update 1 CTP 3 c1>http://www.microsoft.com/en-us/download/details.aspx?id=34818 this Visual Studio Update 1 CTP 3 patch Provides an opportunity to users in building VS2012 C + + project for Win XP OS. For the users want to develop their applications using Dev11 VCs compiler (v110) for Windows XP OS, would need to Insta ll Visual Studio Update 1 CTP 3 patch.

Article Tip, dev11 VC complier is no longer supported XP, if you want to support XP system, need to update to VS2012 Update1, at the same time, in

PlatForm toolset, General, Configuration properties, properties

Choose

Visual Studio 2012-windows XP (V110_XP)

This compiler the generated EXE file to run on the XP system.

VS2012 update1 Download Reference

Http://www.microsoft.com/visualstudio/eng/downloads#d-visual-studio-2012-update

From: http://blog.csdn.net/jtujtujtu/article/details/8756865

VS2012 compiled program, run on XP, ". exe is not a valid Win32 application" "not a valid Win32 application"

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.