Why does my WPF application quit unexpectedly on Windows XP SP2?

与世无争的帅哥 提交于 2019-12-11 19:07:08

问题


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?


回答1:


.NET 4 requires Windows XP Service Pack 3.

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



来源:https://stackoverflow.com/questions/5209822/why-does-my-wpf-application-quit-unexpectedly-on-windows-xp-sp2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!