简体   繁体   中英

WPF Program - program is not valid win32

I have create a Small WPF C# Program with VS2012. it is run successful in Win 7 and Win 8 , 32Bit and 64bit but it have trouble with windows XP and after runnig exe file This message is displayed: program is not valid win32 What is the solution?

you should reduce the target framework of your Project. VS2012 runs with .NET 4.5 as default, Windows XP does not support anything higher than .NET 4.0.

You can go to your Project Properties and select at the tab Application the Target framework.

Try the workaround mentioned in the following link.

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

But still you need to open up to us to give accurate solution.

Make sure you have installed .Net framework in target machine. Windows XP does not support .NET 4.0 and higher

Additional to this, just make sure the platform target of the program is not x64 if you are running it in a 32 bit machine. .Net framework 4 should work in windows XP machine.

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