简体   繁体   English

无法在Windows XP计算机上启动WPF应用程序

[英]Unable to launch a wpf application on windows XP machine

I have created a WPF application with target Framework 4.5 on Windows 8 machine. 我已经在Windows 8计算机上使用目标Framework 4.5创建了WPF应用程序。 The application has reference to two c# dlls with same same target framework. 该应用程序引用了具有相同目标框架的两个c#dll。 I have used Linq to entities to connect to a MS Sql server database in my application. 我已经使用Linq连接实体,以连接到我的应用程序中的MS Sql服务器数据库。

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 现在,当我尝试通过运行Windows XP计算机中Debug文件夹中的exe文件运行同一应用程序时,它显示以下错误消息

D:\\Main\\TPMS\\Debug\\TPMS.exe is not a valid win32 application. D:\\ Main \\ TPMS \\ Debug \\ TPMS.exe不是有效的win32应用程序。

What is the issue here? 这是什么问题?

.NET Framework 4.5 is not supported on windows XP. Windows XP不支持.NET Framework 4.5 Try targeting .NET Framework 4.0. 尝试定位.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 另一个选择是使用Mono,但是由于它不支持WPF,因此您应该坚持使用.NET Framework 4.0

The .NET Framework 4.5 and later versions are not supported on Windows XP Windows XP不支持.NET Framework 4.5和更高版本

NET Framework 4.5 and Windows XP NET Framework 4.5和Windows XP

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM