I’ve got a WPF app that runs perfectly fine inside VS.NET, but if I try to run it outside of VS.NET, I get a “… has encountered a problem and needs to close..” dialog. This happens in Debug and Release modes. Why is this happening?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Most likely this is an uncaught exception. You might want to try using the Application.DispatcherUnhandledException Event to display a message box with the exception to narrow down the problem:
Add this to your App.xaml as an attribute to the
<Application>tag:while the implementation of that handler might look like the following:
But without much context this could be anything that is causing it and you probably have a better understanding where it comes from when looking at the exception.