user2615494
user2615494

Reputation: 47

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?

Upvotes: 2

Views: 2809

Answers (4)

Sin
Sin

Reputation: 1864

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.

Upvotes: 0

Harsh
Harsh

Reputation: 3751

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.

Upvotes: 0

Herm
Herm

Reputation: 2999

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.

Upvotes: 7

Mohammad Mirmostafa
Mohammad Mirmostafa

Reputation: 1775

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

Upvotes: 0

Related Questions