1

Closed

Test app submits to FTP, but regular application doesn't

description

I'm using the configurator, and pointing it to the app.config file for a project that I am using to test NBug. When I hit "Save and Test" from the configurator, the exception rightfully reports to my ftp site. Generating an exception from my own application creates a .zip report file, but never submits to ftp. My project is super simple so I am a bit confused as to why this might be.
 <applicationSettings>
    <NBug.Properties.Settings>
      <setting name="UIMode" serializeAs="String">
        <value>Normal</value>
      </setting>
      <setting name="UIProvider" serializeAs="String">
        <value>WPF</value>
      </setting>
      <setting name="SleepBeforeSend" serializeAs="String">
        <value>10</value>
      </setting>
      <setting name="MaxQueuedReports" serializeAs="String">
        <value>10</value>
      </setting>
      <setting name="StopReportingAfter" serializeAs="String">
        <value>180</value>
      </setting>
      <setting name="MiniDumpType" serializeAs="String">
        <value>Tiny</value>
      </setting>
      <setting name="WriteLogToDisk" serializeAs="String">
        <value>false</value>
      </setting>
      <setting name="ExitApplicationImmediately" serializeAs="String">
        <value>true</value>
      </setting>
      <setting name="HandleProcessCorruptedStateExceptions" serializeAs="String">
        <value>false</value>
      </setting>
      <setting name="ReleaseMode" serializeAs="String">
        <value>true</value>
      </setting>
      <setting name="DeferredReporting" serializeAs="String">
        <value>true</value>
      </setting>
      <setting name="StoragePath" serializeAs="String">
        <value>CurrentDirectory</value>
      </setting>
    </NBug.Properties.Settings>
  </applicationSettings>
 public partial class App : Application
    {
        public App()
        {

            //NBug.Settings.AdditionalReportFiles.Add("TestLog.txt");
            //NBug.Settings.WriteLogToDisk = true;
            //NBug.Settings.ReleaseMode = true;
            //NBug.Settings.UIMode = NBug.Enums.UIMode.Full;

            // NBug.Settings.Resources.UI_Dialog_Normal_Message = "This is a test....";

            // Sample NBug configuration for WPF applications
            AppDomain.CurrentDomain.UnhandledException += Handler.UnhandledException;
            Current.DispatcherUnhandledException += Handler.DispatcherUnhandledException;
            TaskScheduler.UnobservedTaskException += Handler.UnobservedTaskException;

            NBug.Settings.ProcessingException += Settings_ProcessingException;

            
        }

        void Settings_ProcessingException(Exception arg1, NBug.Core.Reporting.Info.Report arg2)
        {
            arg2.CustomInfo = "THIS IS A TEST OF ADDING CUSTOM INFO";
        }
        private void btn_ThrowException_Click(object sender, RoutedEventArgs e)
        {
            throw new System.Exception("This is a test of NBug, thrown by pressing a button");
        }
Closed Jan 10, 2014 at 3:40 PM by soygul
Not an issue w/ NBug library so closing the issue.

comments

soygul wrote Jan 10, 2014 at 3:40 PM

Your configuration seems perfectly ok. There might be a problem with your app's app.config file though.

wrote Jan 10, 2014 at 3:40 PM