Closed Maesetsure closed 5 years ago
@Maesetsure Try using the SendSilently method instead of the Send method.
Problem continue.
public static void SendReport(Exception exception, string developerMessage = "", bool silent = false) { var reportCrash = new ReportCrash("email@email.com") { DeveloperMessage = developerMessage }; //reportCrash.Silent = silent; reportCrash.Silent = true; reportCrash.CaptureScreen = true; reportCrash.SendSilently(exception); }
@Maesetsure Tried it in the Demo project and it works perfectly fine for me. Are you replacing email@email.com with your real email? Also, does it work with Silent = false?
Hi.
-I realized that report most of exceptions, but the first one i tried it continue failing.
Thanks for all.
@Maesetsure If it works should I close the issue?
I am having this issue as well. I'm using a real email with the latest version 1.5.6.
@gorvinsky Did you use the same code as demo version? Do you use WinForms or WPF?
@gorvinsky Did you use the same code as demo version? Do you use WinForms or WPF?
Not exactly. I'm using WPF. Here's the code written in App.xaml.cs:
private void Application_Startup(object sender, StartupEventArgs e)
{
AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
Current.DispatcherUnhandledException += Current_DispatcherUnhandledException;
TaskScheduler.UnobservedTaskException += TaskScheduler_UnobservedTaskException;
}
private void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
{
SendReport((Exception)e.ExceptionObject);
Environment.Exit(0);
}
private void Current_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
{
SendReport(e.Exception);
Environment.Exit(0);
}
private void TaskScheduler_UnobservedTaskException(object sender, UnobservedTaskExceptionEventArgs e)
{
SendReport(e.Exception);
Environment.Exit(0);
}
private void SendReport(Exception exception, string developerMessage = "", bool silent = true)
{
var reportCrash = new ReportCrash("A real email")
{
DeveloperMessage = developerMessage
};
reportCrash.CaptureScreen = true;
reportCrash.Silent = silent;
//reportCrash.SendSilently(exception);
reportCrash.Send(exception);
}
@ravibpatel Any update on this? Could you reopen this issue?
@gorvinsky I need to reproduce the issue before I can reopen it. I will look further into it.
Have been getting the same issue
Hi. I'm trying to report in silence mode. But email no arrive. Code i'm using is next.
Thanks in advance
[STAThread] static void Main() { Application.ThreadException += ApplicationThreadException;