Click here to Skip to main content
15,897,371 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
App.config:

<runtime>
<legacyUnhandledExceptionPolicy enabled="1" />


App.xaml:

private void Application_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
{
Logger.Error(e.Exception);
e.Handled = true;

}

What I have tried:

I have set
legacyUnhandledExceptionPolicy
enabled="1"
Posted
Comments
Richard Deeming 28-Mar-17 9:37am    
Have you connected the Application_DispatcherUnhandledException method to the DispatcherUnhandledException event? That doesn't happen automatically.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900