问题
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