为什么我的WPF应用程序意外在Windows XP SP2中退出? [英] Why does my WPF application quit unexpectedly on Windows XP SP2?

查看:150
本文介绍了为什么我的WPF应用程序意外在Windows XP SP2中退出?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我编译我的WPF项目在Windows 7 64位,使用VS 2010和.NET 4。我已把它编译成一个32位应用程序,当然,它工作正常,在32位和64位位版本的Windows Vista / 7。

而在Windows XP SP2 32位,我得到一个错误:

  

wpfApp遇到问题,需要关闭。我们深表歉意。<​​/ P>

我怎样才能解决这个问题,使我的应用程序将运行在Windows XP?

解决方案

.NET 4中需要Windows XP Service Pack 3的。

为<一个href="http://www.microsoft.com/downloads/en/details.aspx?FamilyId=5B33B5A8-5E76-401F-BE08-1E1555D4F3D4&displaylang=en"相对=nofollow>升级到SP3 或降级项目以面向.NET 3.5。

I've compiled my WPF project on Windows 7 64-bit, using VS 2010 and .NET 4. I have compiled it as a 32-bit application, of course, and it works fine in both 32- and 64-bit versions of Windows Vista/7.

But in Windows XP SP2 32-bit, I get an error:

wpfApp has encountered a problem and needs to close. We are sorry for the inconvenience."

How can I fix this so that my application will run on Windows XP?

解决方案

.NET 4 requires Windows XP Service Pack 3.

Either upgrade to SP3, or downgrade your project to target .NET 3.5.

这篇关于为什么我的WPF应用程序意外在Windows XP SP2中退出?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆