Unable to launch a wpf application on windows XP machine

906 views Asked by At

I have created a WPF application with target Framework 4.5 on Windows 8 machine. The application has reference to two c# dlls with same same target framework. I have used Linq to entities to connect to a MS Sql server database in my application.

Now, When I tried to run the same application by running the exe file located in Debug folder in a Windows XP machine, it gives following error message

D:\Main\TPMS\Debug\TPMS.exe is not a valid win32 application.

What is the issue here?

2

There are 2 answers

0
poyrazcevher On BEST ANSWER

The .NET Framework 4.5 and later versions are not supported on Windows XP

NET Framework 4.5 and Windows XP

0
Hamid Pourjam On

.NET Framework 4.5 is not supported on windows XP. Try targeting .NET Framework 4.0. Another option is to use Mono but since it lacks support of WPF then you should stick to .NET Framework 4.0