title: Azure DiagnosticsMonitorTraceListener not working
body: <p>Azure is starting to do my nut, I am trying to get diagnostics tracing working and have followed various guides (all pretty much say the same thing). I now can't debug locally (I get errors) and RDP doesn't seem to want to connect. I have the following in the web config:</p>
  
  <pre><code> &lt;system.diagnostics&gt;
  &lt;trace&gt;
    &lt;listeners&gt;
      &lt;add type="Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener, Microsoft.WindowsAzure.Diagnostics, Version=1.8.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" name="AzureDiagnostics"&gt;
        &lt;filter type="" /&gt;
      &lt;/add&gt;
    &lt;/listeners&gt;
  &lt;/trace&gt;
  </code></pre>
  
  <p></p>
  
  <p>And then this in the webrole.cs:</p>
  
  <pre><code>public override bool OnStart()
      {
          var diagnostics = DiagnosticMonitor.GetDefaultInitialConfiguration();
  
          diagnostics.Logs.ScheduledTransferLogLevelFilter = LogLevel.Undefined;
          diagnostics.Logs.ScheduledTransferPeriod = TimeSpan.FromMinutes(1);
          diagnostics.Logs.BufferQuotaInMB = 10;
  
          CloudStorageAccount account = CloudStorageAccount.Parse(
              RoleEnvironment.GetConfigurationSettingValue("Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString"));
  
          DiagnosticMonitor.Start(account, diagnostics);
  
          return base.OnStart();
      }
  </code></pre>
  
  <p>And this in the service definition file:</p>
  
  <pre><code>&lt;Imports&gt;
    &lt;Import moduleName="Diagnostics" /&gt;
    &lt;Import moduleName="RemoteAccess" /&gt;
  &lt;/Imports&gt;
  </code></pre>
  
  <p>And this in the service config file:</p>
  
  <pre><code>&lt;ConfigurationSettings&gt;
    &lt;Setting name="Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString" value="DefaultEndpointsProtocol=https;AccountName=&lt;snip&gt;;AccountKey=&lt;snip&gt;" /&gt;
  </code></pre>
  
  <p>I don't get any errors when the site is deployed, I tried a text listener locally which worked fine but I get nothing in table storage on Azure. This has worked before but I have since moved the deployment to another subscription and storage account. Because of my RDP problems, I can't even see if various files are created locally on the instance and I don't know what files to check for anyway!</p>
  
  <p>Please help!</p>